develooper Front page | perl.perl6.language | Postings from September 2005

Re: Proposal: split ternary ?? :: into binary ?? and //

Thread Previous | Thread Next
From:
Luke Palmer
Date:
September 5, 2005 19:52
Subject:
Re: Proposal: split ternary ?? :: into binary ?? and //
Message ID:
7ca3f016050905195236b835bb@mail.gmail.com
On 9/5/05, Juerd <juerd@convolution.nl> wrote:
> Thomas Sandlass skribis 2005-09-05 14:38 (+0200):
> >    b) if this is true, ?? evaluates its rhs such that it
> >       can't be undef
> 
> But
> 
>     $foo ?? undef // 1
> 
> then is a problem.

Yeah.  Hmm, but I kinda like the look of ?? //, and I don't like the
overloading of :: in that way anymore.   So it's possible just to add
a ternary ?? // in addition to, and unrelated to (from the parser's
perspective), the regular //.

?? !! ain't bad either.

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