[Rust Programming] Crafting Interpreters: Day 10

preview_player
Показать описание
In this video we continue to look at the Crafting Interpreters book, and learn how to port it to Rust. Since I'm a Rust beginner, the intent is that it will help me learn the language more in-depth than before.

Today we learned how to "desugar" for-loops into the equivalent while-loop. We also did one of the extended exercises and added "break" statements. This required refactoring of the LoxError struct.

Then we dove into functions and function calls, and stopped partway through.

#rust #rustlang #CraftingInterpreters
Рекомендации по теме
Комментарии
Автор

You didn't have to pass callee as a reference, you can give `finish_call` ownership of it.

FaZekiller-qeuf