I'll just weigh in with my vote against this.
On Tue, 4 Feb 2003, St�phane Payrard wrote:
> In the tradition of Perl concision, I would like newline to be a
> statement terminator everywhere it can: that is when
> a) the parser expects an operator
> _and_ b) we are not in the middle of a parenthesised expression.
I agree that this is bad because it will enforce style, which is something
we should _not_ do.
TCL has this rule, with the result that
if (foo)
{
do something
}
doesn't work, because "if (foo)" is an incomplete statement. So one is
forced into this style:
if (foo) {
do something
}
> Note that, for Perl 6, Larry has already opened the path in his fourth
> apocalypse:
>
> $x = do {
> ...
> } + 1;
>
>
> is different from
>
>
> $x = do {
> ...
> }
> + 1;
Well, I think the motivation was that
m/foo/ and do {
something;
}
print "done";
is such a terrible newbie-trap (it was for me, at least), that they had to
do something to fix it.
~ John Williams