zlacker
[return to "Nimony (Nim 3.0) Design Principles"]
◧
1. kbd+4Hb
[view]
[source]
2025-12-05 13:01:54
>>andsoi+(OP)
The biggest thing I still don’t like about Nim is its imports:
import std/errorcodes proc p(x: int) {.raises.} = if x < 0: raise ErrorCode.RangeError use x
I can’t stand that there’s no direct connection between the thing you import and the names that wind up in your namespace.
◧◩
2. xigoi+MHb
[view]
[source]
2025-12-05 13:06:07
>>kbd+4Hb
It needs to be this way so that UFCS works properly. Imagine if instead of "a,b".split(','), you had to write "a,b".(strutils.split)(',').
[go to top]