I would like to extend my gratitude to whoever decided to add sealed classes, re...
argv[-1] @argv_minus_one@mastodon.sdf.org
I would like to extend my gratitude to whoever decided to add sealed classes, records, and exhaustiveness-checked switch pattern matching to #Java.
This has enabled me to use the same data-bearing-sum-type pattern that #Rust enums provide.
This feature just saved me a bunch of grief and potential bugs in implementing a state machine in which the states are records with different fields. Common in Rust, but this was hard in Java until now.
Keep up the good work!