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

I guess I don't value the "TS transpiles to JS 1-to-1" property very much.

Unions are useful for quite a few things. But I literally was talking about the barebones (and thus simple to write) C/C++ style enums. Where I know it can be one of several primitive values and not have to spend the time creating a class for each possible value.



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

Search: