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

Also interesting to note in the context of the union type discussions below is the use of the `tag` keyword as opposed to the current `enum` for declaring tagged unions.


At one point we were trying to name every part of a union type in Elm. Calling things "tags" instead of "constructors" seemed quite nice, but ultimately, it seemed like we couldn't get the perfect name.


I always did like `tag`, but I think that's a fight for another year. :)




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

Search: