3 ms·
> the function signature told you nothing - like whether the function would even return or not would sometimes be a mystery Yes! This drives me nuts about Java
by GordonS 6y ago
> the function signature told you nothing - like whether the function would even return or not would sometimes be a mystery
Yes! This drives me nuts about JavaScript! Untyped parameters are one thing, but having to read the entire function just to know if it returns anything is ridiculous.
- eyelidlessness 6y agoTo be fair, JS’s dynamic types aren’t solely to blame for this. There are dynamically typed languages that don’t require you to read an entire function body to know if it returns something. But, those are languages without statements, and all functions return something.