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

TypeScript's unions are still impressive as you can union anything, not just literal types (TIL python has unions for literals, thanks).

Out of curiosity, what do you mean by dynamically? Isn't that just a case statement, or am I misunderstanding?



> TypeScript's unions are still impressive as you can union anything, not just literal types (TIL python has unions for literals, thanks).

You can do this in Python too..?




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

Search: