Hacker Newsnew | past | comments | ask | show | jobs | submit | protolyticmind's commentslogin

Rust has IMHO the best implementation of enums ... Mixed with match it is super powerful


Don't forget, Rust was first implemented in OCaml, you can guess where those best enums come from.


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.


I thought it would be humorously ironic :D


One thing I am curious about is why the need for crates? Did they try modules or was the initial compiler using them??

Edit: grammar


If true, that is a recipe for a lawsuit if it went wrong.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: