This is precisely why I prefer Java to C/C++.

Python is nice because it lets you think at a higher level, but its error messages are not as nice as Java's.
---
RT @guzdial@twitter.com
I'm teaching C++ for the first time this semester. In trying things out for myself, I'm delighted by the quality of C++ error messages.

NOT.
twitter.com/guzdial/status/119

@peterdrake That is indeed perplexing. 😟

I visited the wiki page you posted the other day, and it's very nice. Well done, sir. :thumbsup_hmn_h2:

@peterdrake A segfault in what appears to be a example/teaching aid type of program is frankly embarrassing :/ I hope this person refuses to teach the subject until they master it themselves, including common pitfalls and how to avoid them.

As some people mentioned there, you can detect this kind of errors reliably and even get a stack trace if you compile with right parameters, but you shouldn't be running into that unless you're building something relatively complex.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.