by siraben · 6y ago · 0 comments
The best part? It takes a ridiculously small amount of code to do all that, maybe around a hundred or less. Languages without ADTs and higher-order functions bend over backwards to recover them[0] via design patterns.
[0] http://www.cs.ox.ac.uk/jeremy.gibbons/publications/hodgp.pdf
I agree with the comment though. I learned Haskell and how to write an interpreter at the same time by working through the book Crafting Interpreters. It was a great match.
So the choice would be Lisp, Prolog, Caml Light, or the recently released Objective Caml.
The year before I took compilers design project, the TA responsible for it used to disallow them from the implementation language option list, as it would make the assignment too easy.