https://toitlang.org/ logo
Likelyhood of getting uint64 support? :)
# help
a
I once again cam across implementing something that needs to deal with uint64 values, and remembered there is no toit support. Whats the likelyhook of it being added at some stage? and or what would be the recommended best practises for working with uint64s in toit?
f
Typically we just use int64s. Since uint64s are normally just used as data, there isn't really a difference in treating it as signed or unsigned.
a
yeah, the only annoying part is calling stringify on it for loggging and such or text display
f
right... We could add a
$(%X var)
(where
X
is something unused) to print it. Personally, I would probably always print it as hex (
"$(%08x var)"
.
a
so, the usecase for text display probably doesnt work with hex. ie, our devices have a uint64 ID, and we want to display it on an eink for users to see on boot
f
I see. I guess an unsigned
$(%
is then the most useful.