>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
Perl6 RFC Librarian <[EMAIL PROTECTED]> writes:
> =head1 DESCRIPTION
>
> One of the most common mistakes I make is forgetting a C<;> after
> C, 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 {
>
>Simpify syntax of C by deleting C 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",
};
--tom
This and other RFCs are available on the web at
http://dev.perl.org/rfc/
=head1 TITLE
Simplify C Syntax
=head1 VERSION
Maintainer: Mark Senn <[EMAIL PROTECTED]>
Date: 26 Aug 2000
Last-Modified: 29 Aug 2000
Version: 2
Mailing List: [EMAIL PROTECTED]
Number: 167
Status: Developin