RFC 167 (v1) Simplify C<do BLOCK> Syntax

[email protected] (Perl6 RFC Librarian)
Newsgroups perl.perl6.announce,perl.perl6.internals
Message-ID <[email protected]>
This and other RFCs are available on the web at
  http://dev.perl.org/rfc/

=head1 TITLE

Simplify C<do BLOCK> Syntax

=head1 VERSION

  Maintainer: Mark Senn <[email protected]>
  Date: 27 Aug 2000
  Mailing List: [email protected]
  Version: 1
  Number: 167

=head1 ABSTRACT

Simpify syntax of C<do BLOCK> by deleting C<do> before the
block and C<;> after it.

=head1 DESCRIPTION

One of the most common mistakes I make is forgetting a C<;> after
C<do 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  {
        # statements
    }

instead of

    $cond  and  do  {
        # statements
    };

Can the syntax be simplified to drop the C<;>, and while you're at
it, how about the C<do> also, so one can type

    $cond  and  {
        # statements
    }

=head1 IMPLEMENTATION

Unknown.

=head1 REFERENCES

Camel III, pages 123--125
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.