I’m now reading through roc tutorial, in the Nat section. Afaiu, it’s usize in roc. What about isize analog? It is used in general for offsets, and since Nat is unsigned, how then a negative offset be represented?
Nat is actually planned for removal as of current (instead builtin functions will use U64
). I would suggest just using I64
or I32
depending on what you know about the numbers and can reasonably expect.
For context: #ideas > replace Nat
Apparently that link doesn't work because it contains backticks around the word Nat
. Here is the link to the first message: https://roc.zulipchat.com/#narrow/stream/304641-ideas/topic/replace.20.60Nat.60/near/355913473
I just changed the topic name to no longer have backticks - that's a funny Zulip bug! :big_smile:
Last updated: Jul 06 2025 at 12:14 UTC