You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We support arbitrary sized ints through the int type, and fixed size unsigned ints, like uint32. Would it make sense to also support arbitrary sized uints? The use case I'm thinking of has mostly to do with data modeling and keeping the representation space small for your datatypes. It occurs often naturally that some value should never be negative, and if your function parameter accepts an int you would have to verify that it is indeed positive, which not only is cumbersome to do, but also adds exn to the effect list of the function.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We support arbitrary sized ints through the
int
type, and fixed size unsigned ints, likeuint32
. Would it make sense to also support arbitrary sized uints? The use case I'm thinking of has mostly to do with data modeling and keeping the representation space small for your datatypes. It occurs often naturally that some value should never be negative, and if your function parameter accepts anint
you would have to verify that it is indeed positive, which not only is cumbersome to do, but also addsexn
to the effect list of the function.Beta Was this translation helpful? Give feedback.
All reactions