3 ms·
> the "matching" part means that in many languages you can also ask questions about values as you destructure them, I started implementing Lox with Java's seal
by vips7L 4y ago
> the "matching" part means that in many languages you can also ask questions about values as you destructure them,
I started implementing Lox with Java's sealed classes + pattern matching on switch. The exhaustiveness has been really nice to ensure I cover each new token/expression as I add them.