Re:Java 20 Is Out!
by vips7L on Tuesday March 21, 2023 @03:02PM
(#35250897)
> 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.
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.