News for hackers. Stuff that matters.
Re:Rust Design Patterns as a Book by ufo on Sunday January 03, 2021 @10:29PM (#25627671)
In many languages, creating a pull-based iterator for a tree-shaped data-structure can be tricky. It might require turning the recursion inside out to use an explicit stack... Do you know how well Rust can handle this? I'm not familiar with the details.

In any case, while an iterator might help in the "ast_iterator" example, in the "ast_mapper" example I am not sure if there is a way around it.

There are no comments on this comment yet.