develooper Front page | perl.perl5.porters | Postings from April 2012

Re: proposal: functional C<if>

Thread Previous | Thread Next
From:
Eric Brine
Date:
April 27, 2012 00:50
Subject:
Re: proposal: functional C<if>
Message ID:
CALJW-qFS8v2ABA-AgJkNwtd4cR1XTCtN0JYREqDXHW2GyK2Zzw@mail.gmail.com
On Thu, Apr 26, 2012 at 10:07 PM, David Nicol <davidnicol@gmail.com> wrote:

> So it appears that the answer is, we can't have functional "if"
> without either switching from a bison grammar with single-token
> lookahead to a more complicated state machine framework with a stack
> and arbitrarily long lookahead, to allow looking past the
> parenthesized condition


Still not good enough.

if ($c) { $x } else { $y } / ...

Is that an "if" statement before a match operator or an "if" expression
before a division operator?


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