public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Really crummy error messages, was Re: Ada files now checked in
@ 2001-10-07 14:34 Phil Edwards
  2001-10-07 23:01 ` Really crummy error messages Florian Weimer
  2001-10-08 11:09 ` Really crummy error messages, was Re: Ada files now checked in Zack Weinberg
  0 siblings, 2 replies; 9+ messages in thread
From: Phil Edwards @ 2001-10-07 14:34 UTC (permalink / raw)
  To: Gabriel Dos Reis; +Cc: dewar, fw, bosch, dnovillo, gcc, kenner, zack

On Sun, Oct 07, 2001 at 04:19:16PM +0200, Gabriel Dos Reis wrote:
> dewar@gnat.com writes:
> 
> | j.adb:3:04: "xyz" is undefined
> | 
> | compared to the c message
> | 
> | j.c:1: `asdf' undeclared (first use this function)
> 
> For a non-native English speaker like me, I have always questioned
> myself why the latter choice (which I find odd and difficult to read)
> is current practice and not the former.  FWIW, I would suggest that we
> switch to Robert's suggestion.

Even native English speakers, like me, get confused, and here's why:

For "first use this function" to be a correct English sentence [fragment],
there is only one possible parse, and it's not what is intended.  "First use
this function" is an /imperative/ with "use" as a verb (pronounced with a 'z'
sound), and always leaves new users wondering, "first use /which/ function?"

But GCC wants "use" to be a noun, pronounced with an 's' sound.  What we
really want to say is any of:

    j.c:1: `asdf' undeclared (first use in this function)
    j.c:1: `asdf' undeclared (first time used in this function)
    j.c:1: `asdf' undeclared (first occurrence in this function)

(Although maybe "is undeclared" would be better for C than "is undefined.")

Please, let's fix this.


Phil

-- 
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams

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

end of thread, other threads:[~2001-10-11 14:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-07 14:34 Really crummy error messages, was Re: Ada files now checked in Phil Edwards
2001-10-07 23:01 ` Really crummy error messages Florian Weimer
2001-10-08 11:09 ` Really crummy error messages, was Re: Ada files now checked in Zack Weinberg
2001-10-08 13:31   ` Phil Edwards
2001-10-08 16:49     ` Tim Hollebeek
2001-10-09 23:32       ` Fergus Henderson
2001-10-10  2:25         ` Florian Weimer
2001-10-10 11:00         ` Phil Edwards
2001-10-11 14:04     ` Zack Weinberg

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).