4 ms·
Meaningful, detailed error messages are one of the core features of a compiler as the developer needs as much info they can get to find and fix the problem. But
by alpaca128 6y ago
Meaningful, detailed error messages are one of the core features
of a compiler as the developer needs as much info they can get
to find and fix the problem. But when you call e.g. the
mentioned `cat` command as a user you don't care in what
function it encountered an error and the context leading up to
it, you just want to know what went wrong, unless maybe you're
about to file a bug report.
Also the Rust compiler's output quality isn't due to the length
of the output, it's just formatted very well and has often very
useful hints thanks to the compiler's insight into types and
ownership. In the world of NodeJS, TypeScript etc. I've seen a
fair share of verbose error messages, mostly consisting of
worthless but colorfully formatted information that only makes
it harder to find the actually useful part.