Apoc4: Parentheses

2002-01-19 Thread Bryan C. Warnock
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

Re: Apoc4: Parentheses

2002-01-20 Thread Larry Wall
[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

RE: Apoc4: Parentheses

2002-01-20 Thread Sterin, Ilya
> > [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

Re: Apoc4: Parentheses

2002-01-20 Thread Damian Conway
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

Re: Apoc4: Parentheses

2002-01-20 Thread Larry Wall
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

Re: Apoc4: Parentheses

2002-01-21 Thread Bryan C. Warnock
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

Re: Apoc4: Parentheses

2002-01-21 Thread Larry Wall
[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

Re: Apoc4: Parentheses

2002-01-21 Thread Damian Conway
> > 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

Re: Apoc4: Parentheses

2002-01-21 Thread Bryan C. Warnock
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