News for hackers. Stuff that matters.
Re:Crafting Interpreters: A Review by MarquesMa on Wednesday June 22, 2022 @12:53PM (#31838549)
This is my favorite book!

But I think it could be more straight forward if the first interpreter didn't use Java, but a modern main stream language that can avoid code generation and Visitor Pattern. Those parts feels like unnecessary detour.

Re:Crafting Interpreters: A Review by munificent on Wednesday June 22, 2022 @01:09PM (#31838807)
> but a modern main stream language that can avoid code generation and Visitor Pattern.

Yeah, a language with nice algebraic datatypes and pattern matching does eliminate the need for Visitor patterns.

But the reality is that many programmers are working in object-oriented languages where the Visitor pattern is useful, so I deliberately picked Java in order to teach that approach. The book tries to meet you where you are and not where you might wish you were.