RFC 135 (v2) Require explicit m on matches, even with ?? and // as delimiters.

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

=head1 TITLE

Require explicit m on matches, even with ?? and // as delimiters.

=head1 VERSION

  Maintainer: Nathan Torkington <[email protected]>
  Date: August 20, 2000
  Last Modified: August 24, 2000
  Version: 2
  Mailing List: [email protected]
  Number: 135

=head1 ABSTRACT

C<?...?> and C</.../> are what makes Perl hard to tokenize.  Requiring
them to be written C<m?...?> and C<m/.../> would solve this.

=head1 CHANGES

Version 2 of this RFC redirects discussion of this topic to 
[email protected].

=head1 DESCRIPTION

Damian Conway's Text::Balanced module does a pretty good job of
tokenizing Perl code.  However, bare C</.../> and C<?...?> require
semantic analyis to distinguish them from division and the hook
(C<A?B:C>) operator.

To remove this hassle, and thus permit programs that analyze the
source-code of other programs, I propose requiring that all matches
require an explicit C<m>.

=head1 IMPLEMENTATION

Remove the bare C</.../> and C<?...?> from the grammar :-)  When
converting perl5 programs to perl6, put the C<m> in.

=head1 REFERENCES

perl6-language message
C<[email protected]> by Damian Conway
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.