Front page | perl.perl6.language |
Postings from March 2005
Re: nothing
Thread Previous
|
Thread Next
From:
Austin Hastings
Date:
March 21, 2005 12:56
Subject:
Re: nothing
Message ID:
423F34D4.4020906@Yahoo.com
Juerd wrote:
>Rod Adams skribis 2005-03-21 14:25 (-0600):
>
>
>> if $expr {
>> nothing;
>> }
>>is harder to get confused over, IMO
>>
>>
>
>Except writing something when you mean nothing is kind of weird. It
>makes sense in rules because it doesn't usually make sense to match
>nothingness, but for blocks, I'd hate to see { } be invalid or meaning
>anything other than the proposed nothing.
>
>
>Juerd
>
>
I'd like to see nothing as just an alias for {}.
if $expr
{
do nothing;
}
Possibly the most clear piece of P6 code ever.
=Austin
Thread Previous
|
Thread Next