Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

Erlang doesn't have enums.


I almost said the same thing, but a tuple starting with an atom is basically the dynamically typed version of an enum. :) You can safely think of ADTs as sugar and typing rules for such tuples, though I believe you do need dependent types to come at it from that direction...




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

Search: