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 i
> > 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
[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 y
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
> > a
Sterin, Ilya writes:
: How would we then create a inner block scoped variable, as for counters
: or other variables not needed passed the scope. The only way would be
: to increment within the block itself.
The only way to declare a lexical variable outside a block for use only
inside the block
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, ev
>
> [EMAIL PROTECTED] writes:
> :
> : 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 { ... }
> :
> : whi
[EMAIL PROTECTED] writes:
:
: 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 $more { ... }
:
: for
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 $more { ... }
for 1..10 { ... }
I think throwing out two required