If you don't like leaving off the parens, then don't. They are becoming optional, not illegal.
I'm not actually certain that you misunderstood that. I feel a bit like you've talked all around the point but I'm left guessing what your primary point was. But it sure feels like you got the impression that
if( CONDITION ) { CODE }
would no longer be supported in Perl 6.
So if that wasn't your premise, I apologize for not getting your point.
In any case, I suspect that most people won't be dropping the parens much -- based on my impression that most people don't currently drop the optional parens from
STATEMENT if CONDITION;
(like I usually do) and my agreement with you that dropping the former parens will be rather jarring in relation to similar languages (both Perl5 and non-Perl languages).
- tye
In reply to Re^4: Perl oddities ("if" w/o parens)
by tye
in thread Perl oddities
by brian_d_foy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |