|
|
|
|
|
by chrisseaton
3939 days ago
|
|
Yes languages like Haskell and Lisp are excellent for compiler development, as a compiler is one big pure function that involves a lot of transformations on recursive data structures. And what are language academics interested in doing? Implementing languages. So the languages they design are often suited to that task. |
|
There are other great features for compiler development in the ML family, but almost all of them revolve around static types.
Can you explain what you mean when you say Lisp is excellent for compiler development? When changing the AST, how would you go about changing all the code that needs to be changed?