Stream: beginners

Topic: Nat offsets


view this post on Zulip Kiryl Dziamura (May 23 2023 at 15:56):

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?

view this post on Zulip Brendan Hansknecht (May 23 2023 at 16:01):

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.

view this post on Zulip Brendan Hansknecht (May 23 2023 at 16:02):

For context: #ideas > replace Nat

view this post on Zulip Brendan Hansknecht (May 23 2023 at 16:04):

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

view this post on Zulip Richard Feldman (May 23 2023 at 18:25):

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