On Fri, Dec 22, 2006 at 05:15:15PM +0000, Smylers wrote:
> Abigail writes:
> 
> > On Fri, Dec 22, 2006 at 05:18:45PM +0100, Juerd wrote:
> > 
> > > But the following set of wishes clashes heavily:
> > > 
> > > - () can be used for grouping (to override precedence)
> > > - () can be used to enclose subroutine arguments
> > > - subroutines can also be used without ()
> > 
> > Perl5 had no problem coping with those rules
> 
> Yes it does.  Perl 5 suffers that this does what many people expect:
> 
>   print 6 * (3 + 4);
> 
> but this does not:
> 
>   print (3 + 4) * 6;
> 
> It is treated as:
> 
>   (print 3 + 4) * 6;
> 
> That's hateful!

No, it's not. If you had it your way,

    print sqrt (9) + sqrt (49)

would print '4' and not '10'. I doubt many people would expect it to print 4.



Abigail

Attachment: pgp5rjzdyUs62.pgp
Description: PGP signature

Reply via email to