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

If topicalization

Thread Next
From:
Luke Palmer
Date:
August 3, 2005 11:27
Subject:
If topicalization
Message ID:
7ca3f016050803112718eea2c1@mail.gmail.com
I vaguely recall that we went over this already, but I forgot the
conclusion if we did.

In Damian and Larry's talk here at OSCON, I saw the example:

    if foo() -> $foo {
        # use $foo
    }

How can that possibly work?  If a bare closure { } is equivalent to ->
?$_ is rw { }, then the normal:

    if foo() {...}

Turns into:

    if foo() -> ?$_ is rw { }

And every if topicalizes! I'm sure we don't want that.

Luke

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