Perl6 RFC Librarian [EMAIL PROTECTED] writes:
=head1 DESCRIPTION
One of the most common mistakes I make is forgetting a C; after
Cdo BLOCK, probably because I'm thinking ``if'' and an if doesn't
require a C: after it's closing C}. I'll type, for example,
$cond and do {
#
Doesn't dropping the requirement for a terminating ';' make life
harder for the parser?
It doesn't seem like that's a criterion people have been applying
to any of this. Unfortunately.
--tom
Simpify syntax of Cdo BLOCK by deleting Cdo before the
block and C; after it.
You can't do that. They do different things.
$n = do {
my $sum = 0;
for $i (@array) { $sum += $i }
$sum;
};
versus
$rec = {
FOO = 1.4,
BAR = "red",
};