News for hackers. Stuff that matters.
Re:Hegel – An advanced static type checker for JavaScript by mcluck on Thursday October 13, 2022 @05:58AM (#33189139)
I agree and I'd like to add that if someone wants to throw an error for invalid type casts, they can use assertion functions.

https://www.typescriptlang.org/docs/handbook/release-notes/t...

Re:Hegel – An advanced static type checker for JavaScript by eyelidlessness on Thursday October 13, 2022 @12:28PM (#33193227)
That’s an option I considered mentioning, but it has some weird ergonomics that many people won’t like.