3 ms·
I seem to have an unpopular opinion about humanized compiler error messages. It's better than cryptic messages for sure but I think it's worse than robotic but
by Existenceblinks 4y ago
I seem to have an unpopular opinion about humanized compiler error messages. It's better than cryptic messages for sure but I think it's worse than robotic but concisely clear error messages. For example, for a type error, don't write mini book for me, just tell me "line: 56 column: 97, s/int/string/". Same for complicated error, don't try to be human it's even more confusing.
- jdkoeck 4y ago> line: 56 column: 97, s/int/string/ Sorry, but that’s the least accessible error message I have ever read.
- capableweb 4y agoYou haven't dealt with PHP by any chance, have you? Not saying the above is good/bad, just saying that there are (was) worse offenders out there for sure.
- Existenceblinks 4y agoHalf serious, I think JS' "undefined is not a function" wouldn't be terrible if it tells me where it lost its value. The message itself is already ok.
- Existenceblinks 4y agoI suspect the downvoter misinterprets my "example". s/int/string/ meant to be semantics. Something like diff in test or text diff with semantic help.
- cloogshicer 4y agoOut of genuine curiosity: Why do you think that? Trying to understand where you're coming from.
- Existenceblinks 4y agoI wrote Elm before and while the error message is nice it takes longer to iterate and fix stuff. Because It's in a mix mode of docs and error message. I only want a clear error message concisely.
- 1-more 4y agoI'm with you to an extent: I'd like to drop the "Hint" and "Note" in the error message optionally.
- cloogshicer 4y agoInteresting, thanks for explaining.