News for hackers. Stuff that matters.
Re:Goenums: Type Safe Enum Generator for Go by protolyticmind on Sunday April 27, 2025 @01:28AM (#43809649)
Rust has IMHO the best implementation of enums ... Mixed with match it is super powerful
Re:Goenums: Type Safe Enum Generator for Go by aldanor on Sunday April 27, 2025 @07:52AM (#43811268)
Don't forget, Rust was first implemented in Ocaml, You can guess where those best enums come from.
Re:Goenums: Type Safe Enum Generator for Go by sureglymop on Sunday April 27, 2025 @02:15PM (#43813970)
Kotlins enum classes are quite similar, probably even inspired by rust or prior ML languages. And there's `when` as an alternative to match.

Kotlins syntax is in general a bit underrated imo and I disagree that Java is up to par.