develooper Front page | perl.perl6.language | Postings from February 2004

Re: The Sort Problem: a definitive ruling

Thread Previous | Thread Next
From:
Luke Palmer
Date:
February 19, 2004 20:09
Subject:
Re: The Sort Problem: a definitive ruling
Message ID:
20040220040834.GA13336@babylonia.flatirons.org
Luke Palmer writes:
> Yes.  Commas may be ommitted on either side of a block when used as an
> argument.  I would argue that they only be omitted on the right side, so
> that this is unambiguous:
> 
>     if some_function { ... }  
>     { ... }
> 
> Which might be parsed as either:
> 
>     if (some_function { ... }) { ... }
> 
> Or:
> 
>     if (some_function()) {...}
>     {...}  # Bare block

Silly me.  That doesn't solve anything.  I don't know why I thought it
did.  I still think that this looks weird:

    foo $bar { ... } $baz;

But that's just preference.

Luke


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