[WIP] [RFC] first class inline iterators: iter it = myiter()
to allow perfect forwarding of iterators, with delayed evaluation
#9374
Labels
This solves a number of problems with iterators, especially inline iterators which currently aren't 1st class citizens.
This would enable to pass them around as
iterator T
to other procs that acceptiterator T
(which is currently impossible for inline iterators).It would make for nicer error messages, easier debugging, easier to write iterator pipelines.
This would be a zero-cost abstraction (compared to fully inlining the code)
fixes these
toSeq
overload messes up iterator visibility Exporting atoSeq
overload messes up iterator visibility RFCs#512because
toSeq
could be written to take iterator TThe text was updated successfully, but these errors were encountered: