|more useful options|
Re: Re: Perl 6 will make amends (was:Perl's Bad Ideas)by TheDamian (Priest)
|on Apr 07, 2002 at 21:24 UTC||Need Help??|
...is the statement part of a conditional in the same block as the body itself?
No, the conditional is outside the block, both physically and logically (err...physiologically? ;-).
Your example is equivalent to:
BTW, in Perl 6, if and while (and the rest of the control structures) can be thought of as built-in functions. As if they were:
That's why the conditional is not part of the block: it's an entirely separate argument to the control structure.
And, yes, you'll be able to get the signature (a.k.a. prototype) of a control structure, and overload it, and redefine it (lexically).
And you'll probably be able to write bad things like:
and worse things like: