Re:Programming languages should have a tree traversal primitive
by samus on Tuesday April 29, 2025 @05:18PM
(#43838148)
Same thing, but the iterator is instead hidden inside the language implementation. `foreach` is already a quite general construct, and iterators are the way to extend them. However, I can see the benefit of designing a library to help implement more intricate iterators.
Ceterum censeo this would be a family of simple macros in LISP.
Ceterum censeo this would be a family of simple macros in LISP.