2 ms·
Iterators in nim are also weird because many of them are not first class types and cannot be assigned to variables. I do not consider that to be a particularly
by the_mitsuhiko 9y ago
Iterators in nim are also weird because many of them are not first class types and cannot be assigned to variables. I do not consider that to be a particularly good concept to be honest.
- dom96 9y agoThere are two types of iterators in Nim. The inlined variant is more efficient, and you can fairly easily wrap it in the other type: the "closure"" iterator. Why do you not consider it a good concept?
- the_mitsuhiko 9y agoBecause since we're comparing this with Rust right now which can achieve highly efficient iterators without sacrificing the ergonomics of it.