News for hackers. Stuff that matters.
Re:So you want to write a type checker (2014) by Dylan16807 on Monday October 30, 2017 @11:54AM (#15585966)
https://github.com/Microsoft/TypeScript-Handbook/blob/master...

The example seems like a valid case. The type of event is expressed in a separate parameter, so being strict here requires pointless casting and doesn't actually make things safer.

Whether you think this type weakness is worth the downsides is up to you.

There are no comments on this comment yet.