[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: quality of error messages

Peña, Botp

10/8/2004 6:29:00 AM

Markus [mailto:markus@reality.com] wrote:

> > >
> > > So, which '(' is missing its ')'?
> > >
> >
> > again, we do _not choose or point where _exactly.
> >
> > we only say "missing foo-end on possible foo-begin at
> line#". Compiler
> > suggest. The programmer will decide.
>
> But if the compiler doesn't have some system (and this
> is exactly the point I believe matz was asking about) to
> narrow down the possibilities somewhat,

we are narrowing it down but definitely we cannot solve it today :-)
we can start slowly.

>it isn't helping the programmer--and may be doing harm, through
misdirection.

I think even a message like a "missing pair" is a lot _better than "syntax
error".

>
> -- Markus

kind regards -botp