Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

> using `func` to declare pure functions and `proc` for others

What's the limit used by Nim in its definition of a “pure function”? Is function that allocate memory considered a impure one? (technically it is, but it really reduces the usefulness of such keyword if it's too restrictive, that why Rust don't have it for instance).



view as:

Legal | privacy