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

surprising consequences

Thread Next
From:
Juerd
Date:
April 25, 2005 12:05
Subject:
surprising consequences
Message ID:
20050425190549.GO26732@c4.convolution.nl
Assuming the following are true:

    A: "if" is now a normal function

    B: "foo() + 3" is (foo) + 3, foo doesn't get 3.

Then does that mean we're stuck with:

    C: "if($foo) { say 'foo' }" being a syntax error?

I currently think A is wrong. Am I right?


Juerd
-- 
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html 
http://convolution.nl/gajigu_juerd_n.html

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