Nimony (eventually Nim 3.0) Design Principles

nim-lang.org

9 points by andsoitis a day ago


mwkaufma - a day ago

Big "college freshman" energy in this take:

  I personally prefer to make the error state part of the objects: Streams can be in an error state, floats can be NaN and integers should be low(int) if they are invalid (low(int) is a pointless value anyway as it has no positive equivalent).
It's fine to pick sentinel values for errors in context, but describing 0x80000000 as "pointless" in general with such a weak justification doesn't inspire confidence.
- a day ago
[deleted]