Join Nostr
2026-10-18 02:23:42 UTC

argv[-1] on Nostr: I would like to extend my gratitude to whoever decided to add sealed classes, ...

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!

#programming