3 ms·
> ... allowing values (yes, not all values, but important ones) to be nil ... What!? What that even means? Value types can't be nil in nim-lang, these are alwa
by planetis 6y ago
> ... allowing values (yes, not all values, but important ones) to be nil ...
What!? What that even means? Value types can't be nil in nim-lang, these are always initialized, but you can use Option[T] when you need it.
If you mean reference types (`ref`) hopefully this PR will land soon https://github.com/nim-lang/Nim/pull/15287 https://github.com/nim-lang/Nim/pull/15287.
- Conlectus 6y agoReference types were indeed what I was referring to.