3 ms·
Stupidly Typed Programming Languages
- joegibbs 2y agoI don’t get it. What else could it possibly output first, and what languages do that?
- alt187 2y agoAn exception. It could also not compile, making it never print out the "Hello!" line.
- ktm5j 2y agoOkay, but I still don't think it's obvious where types come into this.. is it because the function definition for main has no return type?
- gorjusborg 2y agoFound a nerd! Get 'em! (just kidding of course, matching the tone of the article)
- gorjusborg 2y agoOr, the error message could print the failing line along with the error. Wouldn't that make it a stupidly typed language?
- s6af7ygt 2y agoI think it's a joking dig, saying that dynamic (interpreted) languages are stupid while compiled languages are not. `im_stupid()` is not defined, so there should be a compilation error. If it first prints the output of `print` before giving an error about `im_stupid` not being defined, it's a dynamic language, and (according to the author) that's stupid.