On Sunday 20 January 2002 21:00, Damian Conway wrote:
Bryan C. Warnock asked:
Since the parentheses are no longer required, will the expressions
lose or retain their own scope level? (I'm assuming that whatever
rule applies, it will hold true if you do elect to use parantheses
anyway.)
[EMAIL PROTECTED] writes:
: On Sunday 20 January 2002 21:00, Damian Conway wrote:
: Bryan C. Warnock asked:
: Since the parentheses are no longer required, will the expressions
: lose or retain their own scope level? (I'm assuming that whatever
: rule applies, it will hold true if you do
Err. Expressions don't have their own scope level, even in Perl 5.
They do in block conditional expressions.
But that's a property of being in a block conditional, not of being an expression.
And, yes, it's going away in Perl 6.
Damian
On Monday 21 January 2002 11:27, Larry Wall wrote:
Compound statements in Perl 5 do have an implicit {} around the entire
statement, but that has nothing to do with the required parentheses
around the expressions, other than the fact that we're doing away with
both of those special rules in
[EMAIL PROTECTED] writes:
: QUOTE
: Interestingly, this one tweak to the whitespace rule also
means that we'll
: be able to simplify the parentheses out of other similar
built-in constructs:
:
: if $foo { ... }
: elsif $bar { ... }
: else { ... }
:
: while
Bryan C. Warnock asked:
Since the parentheses are no longer required, will the expressions
lose or retain their own scope level? (I'm assuming that whatever
rule applies, it will hold true if you do elect to use parantheses
anyway.)
Err. Expressions don't have their own scope level, even