Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
protolyticmind
9 months ago
|
parent
|
context
|
favorite
| on:
Goenums: Type Safe Enum Generator for Go
Rust has IMHO the best implementation of enums ... Mixed with match it is super powerful
aldanor
9 months ago
|
next
[–]
Don't forget, Rust was first implemented in OCaml, you can guess where those best enums come from.
sureglymop
9 months ago
|
prev
[–]
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: