develooper Front page | perl.perl5.porters | Postings from June 2004

Re: [perl #30045] Transliteration replacement not terminatedmessage obscure

Thread Previous | Thread Next
From:
Dan Jacobson
Date:
June 6, 2004 16:54
Subject:
Re: [perl #30045] Transliteration replacement not terminatedmessage obscure
Message ID:
873c58y02n.fsf@jidanni.org
>> "Transliteration replacement not terminated"

(Ton> Basically, don't give your functions names of perl operators to avoid
(Ton> confusion (don't name them "y", "s", "q" or "m" for the single letters))

OK, the error messages should perhaps mention what letter was
bothering them, instead of hoping we on the spot will remember that y
is an alias for tr which stands for Transliteration.

The user was thinking "I'll plot y as a function of x", and could not
tell from the message what went wrong, especially as it is all on one
line being from a makefile.

Indeed, I bet if line numbers were removed, perl error messages would
lose to gawk in terms of clarity.

Gawk often points out just where things went wrong, with a ^.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About