placeholder

Zero-Overhead Tree Processing with the Visitor Pattern

The Visitor Pattern is one of the most mis-understood of the classic design patterns. While it has a reputation as a slightly roundabout technique for doing simple processing on simple trees, it is actually an advanced tool for a specific use case: flexible, streaming, zero-overhead processing of co...

Click to view the original at www.lihaoyi.com