Re:What can we learn from how compilers are designed?
by qznc on Saturday March 17, 2018 @03:12AM
(#16605921)
AST transformations are a exemplary instance of the Expression Problem. Solutions in mainstream languages, eg the Polyglot framework for Java, lead to ugly overengineered code. Writing AST transformations with multimethods might be nice.
I don't really get the appeal of using giant mega case matches in a compiler.