Front page | perl.perl6.language |
Postings from January 2002
Apoc4: Parentheses
Thread Next
From:
Bryan C. Warnock
Date:
January 19, 2002 08:05
Subject:
Apoc4: Parentheses
Message ID:
20020119160532.HWIX3734.femail38.sdc1.sfba.home.com@there
<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 $more { ... }
for 1..10 { ... }
I think throwing out two required punctuation characters for one required
whitespace is an excellent trade in terms of readability, particularly when
it already matches common practice. (You can still put in the parens if you
want them, of course, just for old times' sake.)
</QUOTE>
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.)
--
Bryan C. Warnock
bwarnock@capita.com
Thread Next
-
Apoc4: Parentheses
by Bryan C. Warnock