develooper Front page | perl.perl6.internals | Postings from August 2008

Re: 57548-CONDITIONED_LINE_enh

Thread Previous | Thread Next
From:
Allison Randal
Date:
August 26, 2008 11:10
Subject:
Re: 57548-CONDITIONED_LINE_enh
Message ID:
48B446EA.7000705@perl.org
jerry gay wrote:
> On Tue, Aug 26, 2008 at 9:16 AM, Reini Urban <rurban@x-ray.at> wrote:
>> jerry gay schrieb:
>>> On Tue, Aug 26, 2008 at 2:34 AM, Reini Urban <rurban@x-ray.at> wrote:
>>>> I'll go now for something like
>>>>
>>>> #IF(key1|key2&(key3&!key4))

To make sure, that means basically the same thing as the following 
pseudocode?

  if (key1 or key2 and (key3 and not key 4))

And the parentheses around the second pair is optional, but there to 
guarantee the precedence?

And, we can optionally include whitespace to make the condition read better?

   #IF(key1 | key2 & (key3 & !key4))

If so, then thumbs up.

>>>> #IFNOT(key1|key2&(key3&!key4))
>> I went for #UNLESS(expr): here.
>> Also #ELSIF(expr):

Thumbs up.

>> With or without the ending double-colon?
>>
> the colon is unnecessary. the ending paren and a mandatory whitespace is enough.

I prefer the ending colon, because it makes it very clear where the 
actual line text begins. But, it's not hugely important.

Allison

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