Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
fulafel
on Feb 6, 2021
|
parent
|
context
|
favorite
| on:
Don't use functions as callbacks unless they're de...
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.
monstermachine
on Feb 6, 2021
[–]
Unsound type system was a sacrifice made for easy migration from javascript.
Aeolun
on Feb 6, 2021
|
parent
|
next
[–]
And wildly successful at that. At least I can use typescript with my existing codebase. Rewriting everything in haxe isn’t exactly appealing.
fulafel
on Feb 6, 2021
|
parent
|
prev
[–]
That may be for the static type system but you could still check and signal an error at runtime instead of silently ignoring it.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: