public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: Is this a gcc bug?
@ 2001-01-12 19:15 dewar
  2001-01-12 19:29 ` Fergus Henderson
  0 siblings, 1 reply; 3+ messages in thread
From: dewar @ 2001-01-12 19:15 UTC (permalink / raw)
  To: dewar, fjh; +Cc: Anshil, aoliva, gcc

<<For the Mercury compiler, many error messages have two different forms,
one of which includes additional information such as hints about possible
causes of the error.  By default, the compiler prints the concise versions,
plus a line at the end of the compiler output saying "For more information,
recompile with `-E'", which is the compiler option to enable the more
verbose messages.  I think this is a good compromise.
>>

But that's a response about verbosity, my question which I repeat:

> So the question is, should an error message like this try to educate,
> or just take the simple minded non-determinstic viewpoint.

is about point of view. These are orthogonal issues.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Is this a gcc bug?
  2001-01-12 19:15 Is this a gcc bug? dewar
@ 2001-01-12 19:29 ` Fergus Henderson
  2001-01-13 11:13   ` Warning Messages (was: Is this a gcc bug?) Laurent Guerby
  0 siblings, 1 reply; 3+ messages in thread
From: Fergus Henderson @ 2001-01-12 19:29 UTC (permalink / raw)
  To: dewar; +Cc: Anshil, aoliva, gcc

On 12-Jan-2001, dewar@gnat.com <dewar@gnat.com> wrote:
> <<For the Mercury compiler, many error messages have two different forms,
> one of which includes additional information such as hints about possible
> causes of the error.  By default, the compiler prints the concise versions,
> plus a line at the end of the compiler output saying "For more information,
> recompile with `-E'", which is the compiler option to enable the more
> verbose messages.  I think this is a good compromise.
> >>
> 
> But that's a response about verbosity, my question which I repeat:
> 
> > So the question is, should an error message like this try to educate,
> > or just take the simple minded non-determinstic viewpoint.
> 
> is about point of view. These are orthogonal issues.

They're not entirely orthogonal, since if you're restricted to using
only concise error messages, then often you don't have sufficient room
to educate.

The simple-minded viewpoint could easily mislead the user,
while the correct viewpoint could confuse the uneducate user.
If the choice is between being misled or being confused,
I think it is better to leave the user confused, so long as
we give them a hint about how to obtain more information.
With a `--verbose-diagnostics' option, as outlined above,
that is quite feasible.  So I vote for trying to educate.

-- 
Fergus Henderson <fjh@cs.mu.oz.au>  |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: < http://www.cs.mu.oz.au/~fjh >  |     -- the last words of T. S. Garp.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Warning Messages (was: Is this a gcc bug?)
  2001-01-12 19:29 ` Fergus Henderson
@ 2001-01-13 11:13   ` Laurent Guerby
  0 siblings, 0 replies; 3+ messages in thread
From: Laurent Guerby @ 2001-01-13 11:13 UTC (permalink / raw)
  To: fjh; +Cc: dewar, Anshil, aoliva, gcc

An alternative solution for warnings where the only valid hint is one
paragraph long (or more ;-), is to put a really short one, even if
mysterious, plus "see GCC documentation for more information" or "GCC
documentation has more information", and have sections "Common
Warnings for Language X" in the compiler manual detailing the
issues. Such a solution would solve cleanly the education issue, and
the "meta-education" issue: there's a manual dude! ;-).

I often found that people ask themselves questions the first time they
see a warning, then the messages is just an id and it's better when
it's short in listings.

-- 
Laurent Guerby <guerby@acm.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-01-13 11:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-12 19:15 Is this a gcc bug? dewar
2001-01-12 19:29 ` Fergus Henderson
2001-01-13 11:13   ` Warning Messages (was: Is this a gcc bug?) Laurent Guerby

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).