News for hackers. Stuff that matters.
Re:TypeScript: Branded Types by Aeolun on Wednesday April 24, 2024 @09:09PM (#40152032)
I mean, they have to stay backwards compatible with Javascript. That kind of limits your options.
Re:TypeScript: Branded Types by munk-a on Thursday April 25, 2024 @02:19PM (#40161141)
Not particularly - they could use distinct tokens (i.e. these brandings) on all types implicitly.