Writing a Programming Language (in Rust) 21: Laurel: Type methods

preview_player
Показать описание
This is episode 21 of the "Writing a Programming Language (in Rust)" livestream series, where I'll be implementing a skeleton C-style programming language from scratch using Rust and LALRPOP.

0:00:00 Add support for type methods
1:20:18 Implement argument parsing in ported script
2:00:44 Continuing porting of Docker install script
Рекомендации по теме
Комментарии
Автор

If the prototypes for builtins aren't dynamic, you could just hardcode e.g. `match (value, prop) { (Str(_), "strip_prefix" =>...}`. You may have other reasons for using a hash map, but a good tip for learning Rust is to be vigilant for an oop mindset creeping in. Old habits are hard to kick.

moitoius