3 ms·
Mostly! Pattern matching is far superior to the visitor pattern. When I teach compilers using the Appel book, there's this blip of utter confusion that always s
by titzer 3y ago
Mostly! Pattern matching is far superior to the visitor pattern. When I teach compilers using the Appel book, there's this blip of utter confusion that always shows up around the visitor pattern, which is used to implement either or both of semantic analysis or translation. Literally the visitor pattern is harder to understand than compilers.