I suppose I ought to sit down and learn a little Rust before tomorrow's Rust "class" starts. The one I'm leading...
Okay, starting with "let's write an interpreter" is definitely a way to learn Rust on hard mode. Yow!

@dabeaz I'm moving more slowly but I've got a scanner and part of a parser in https://github.com/djmitche/rox

I used nom for the scanner but it's really not necessary here (and is hard to read!)

GitHub - djmitche/rox: Working on Crafting Interpreters

Working on Crafting Interpreters. Contribute to djmitche/rox development by creating an account on GitHub.

GitHub
@djmitche Wait, you're coding this too?
@dabeaz yeah, I bought the book, slowly plugging away. It's really well written! (Crafting Interpreters)
@djmitche We made it partly through the scanner portion. Found it harder than it looks and I'm not so happy with the end result at the moment. Trying to decide how faithful to stay to the "Java" approach.
@dabeaz they are such different languages I didn't even try to follow the Java. At best you'd end up with very un-idiomatic Rust

@djmitche

@dabeaz

I ported a Java regex engine to Rust and that went quite well. It's not the most idiomatic Rust indeed, though.

@djmitche Agree. My inclination is to write code in more of a functional style whenever I can get away with it. A lot of tasks don't require a class.