Skip to content

si32/ui32 vs i32/u32 #162

Closed Locked Answered by lattner
elliotwaite asked this question in Q&A
May 15, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Yeah, for the core language types, our audience are general programmers and Python folks, not MLIR nerds ;-)

We want things to be clear and unambiguous, compiler folk can deal with naming mapping. Abdul is out on vacation this week but we can discuss when he returns.

would it ever makes sense for Mojo to also support signless integers?

I don't see a benefit to that. It would mean that we couldn't use the standard Python operators (which imply sign behavior, e.g. on divides). Signless integers are good for compilers because they want canonical forms, but users want operations that work on types. It's a bit of a different concern.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@elliotwaite
Comment options

Answer selected by goldiegadde
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants