News for hackers. Stuff that matters.
Re:Things Go needs more than generics by mbStavola on Monday October 04, 2021 @07:11PM (#28753551)
Aside from explicitly turning off null safety and tricky use of casting, an easy example is interfacing with JS.

If you're using either a library that wasn't written in pure TS (maybe JS or JS with .d.ts) or interacting with some unconverted JS from your own codebase, you can easily pass a null through entirely by accident. The problem really stems from the JS end of things, but 9 times out of 10 you're going to be touching JS at _some_ level when using TS so I think it's fair to point out this gap.

There are no comments on this comment yet.