4 ms·
Typescript doesn’t save you from all the weird things happening at runtime. A missing check at a context boundary and you can have a wild time (been there).
by cygned 5y ago
Typescript doesn’t save you from all the weird things happening at runtime. A missing check at a context boundary and you can have a wild time (been there).
- kevinmgranger 5y agoContext boundary meaning where it interfaces with javascript?
- cygned 5y agoThe points where you parse JSON, for example.
- sli 5y agoThis particular annoyance has made me a huge fan of Elm's (and other languages') JSON decoders, and specifically No Red Ink's JSON decoding pipeline. All the type safety I could ever want and no falling back to writing defensive JS to maintain safety at runtime.