[Bug c/84890] Overly verbose notes for missing headers
dmalcolm at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Mar 16 19:13:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84890
--- Comment #1 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Hacker News user "dmckeon" commented:
https://news.ycombinator.com/item?id=16603185
> A small idea: reframe suggestions to be positive, future-looking,
> and pro-active, such as replacing:
>
> did you forget to ‘#include <limits.h>’?
>
> with:
>
> do you want to ‘#include <limits.h>’?
>
> or, perhaps better:
>
> you may want to ‘#include <limits.h>’.
>
> It may seem a small thing, but focusing on the solution rather
> than the problem may tend to sooth the mind of the coder, rather
> than to magnify their annoyance.
I like this.
> Consider it a path that is the opposite of Nedry's
> "You didn't say the magic word!"
Indeed. We want the feeling that the compiler is the servant of the user, not
the other way around.
More information about the Gcc-bugs
mailing list