News for hackers. Stuff that matters.
Re:Things I Was Wrong About: Types by GordonS on Sunday September 27, 2020 @06:00PM (#24610473)
> 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.

Re:Things I Was Wrong About: Types by eyelidlessness on Sunday September 27, 2020 @06:16PM (#24610578)
To 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.