# \`Indexer\` and \`Int\` vs \`UInt\`

**URL:** <https://forum.modular.com/t/indexer-and-int-vs-uint/2210>\
**Category:** Standard Library\
**Created:** [September 2, 2025, 3:48am UTC](https://forum.modular.com/t/indexer-and-int-vs-uint/2210 "2025-09-02T03:48:21Z")\
**Posts on this page:** 1\
**Showing post:** 155

<div class="post-metadata">

**Author:** ![samufi](https://avatars.discourse-cdn.com/v4/letter/s/d2c977/32.png) [@samufi](https://forum.modular.com/u/samufi)\
**Post date:** [November 18, 2025, 11:20pm UTC](https://forum.modular.com/t/indexer-and-int-vs-uint/2210/155 "2025-11-18T23:20:23Z")

</div>

Reading through this thread, I was thinking of a comtime signed integer (basically a `UInt` whose sign is given by a parameter). I think this could solve some of the issues mentioned here. Nonetheless, I would be surprised if other people had not been thinking about this already, so I would appreciate comments as to why this is not a good option.

To keep the current thread focused, I would propose to discuss this here, where I also provide some more details and a reference implementation: [Pre-Proposal: a comptime signed int for indexing](https://forum.modular.com/t/pre-proposal-a-comptime-signed-int-for-indexing/2462)

---

_[View the full topic](https://forum.modular.com/t/indexer-and-int-vs-uint/2210)._
