Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I don't think we can excuse it by citing the nature of source-to-source compilers. Other languages like Haxe, Elm, ReasonML, ClojureScript etc that target JS don't suffer from this.


Unsound type system was a sacrifice made for easy migration from javascript.


And wildly successful at that. At least I can use typescript with my existing codebase. Rewriting everything in haxe isn’t exactly appealing.


That may be for the static type system but you could still check and signal an error at runtime instead of silently ignoring it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: