4 ms·
I did the Crafting Interpreters book to learn Rust after I did The Rust book. I faced the same problem as you. Somehow it felt like Arenas went beyond Rust's p
by himujjal 4y ago
I did the Crafting Interpreters book to learn Rust after I did The Rust book.
I faced the same problem as you. Somehow it felt like Arenas went beyond Rust's philosophy and added huge amounts of complexity to the interpreter.
Tree traversal and mutating the environment of a `block` internally was an issue I spent like 2-3 days on. I was porting Java code to Rust after all. Somehow got it working in a Rust way. I used unsafe at one place. But I was left heavily unsatisfied. Something about graphs/trees and Rust don't match up.