News for hackers. Stuff that matters.
Re:Teaching Compilers Backward by tester756 on Tuesday February 23, 2021 @04:42PM (#26243283)
>implementing passes over the AST using visitors,

Why Visitor Pattern is so popular around ASTs?

I always feel like this particular patterns adds too much boilerplate and is not really needed in "modern" languages.

Re:Teaching Compilers Backward by the-smug-one on Tuesday February 23, 2021 @06:10PM (#26244290)
Because the visitor pattern is just pattern matching in OO clothing.