Re:How an Anti-TypeScript “JavaScript developer” like me bec...
by ufmace on Tuesday March 02, 2021 @01:37PM
(#26318697)
No, those languages actually enforce type checking at runtime. The libraries for parsing JS that support parsing into a custom type will blow up right there if the provided JSON cannot be parsed into the provided class, not 5 steps later when you try to use something from that class that isn't actually there.
[ Parent
| on HN ]
Re:How an Anti-TypeScript “JavaScript developer” like me bec...
by damagednoob on Tuesday March 02, 2021 @04:12PM
(#26320830)
Typescript doesn't exist at runtime.