Hacker News new | ask | show | jobs
by duped 721 days ago
You can just not point back to parents (which is rarely needed for anything but iterators) and to not use iterators (since they're a pain in the first place!). The visitor pattern exists for a reason.