[Kc] proposal: functional C<if>

David Nicol davidnicol at gmail.com
Sat Apr 28 13:53:23 PDT 2012


On Sat, Apr 28, 2012 at 8:21 AM, Ævar Arnfjörð Bjarmason
<avarab at gmail.com> wrote:
> For what it's worth I once asked Larry Wall on #perl6 if he'd consider
> making everything an expression in Perl 6, i.e. you could always stick
> an assignment in front of any block.
>
> He didn't like that for language design reasons, he thought that
> expressions and blocks should be distinct constructs.
>
> I think for Perl 5 it makes the most sense to just continue using do {}.

( expression )
could always be
do { expression }

could it not?


-- 
In this document, the key words "MUST", "MUST NOT", "REQUIRED", "SHALL",
"SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and
"OPTIONAL" are to be interpreted using situational ethics.


More information about the kc mailing list