ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl5-porters
perl5-porters
RFC: multiline comments
by Alexandr Ciornii other posts by this author
May 23 2007 5:37AM messages near this date
Re: [perl #43037] Bad license in perl distribution | Re: RFC: multiline comments
Hello!

One of the Perl's missing features is multiline comments.
I propose to add Perl 6 style comments.
example:
#[
comment
]
Or
#[[ ... ]]
#( ... )
Any bracket combination is good, so it allows commenting Perl
operators and nested comments.
See http://dev.perl.org/perl6/doc/design/syn/S02.html#Whitespace_and_Comments
(dev version: http://feather.perl6.nl/syn/S02.html#Whitespace_and_Comments)

This feature should be activated by 'use 5.10' or 'use feature
"multiline_comments_or_some_other_name"'.

It would be more convinient than marking each line with '#', or using
=for comment
=cut

Is it easy to implement? Or may be simplier comments like #[ .. ]#, #( ... )#

-- 
Alexandr Ciornii, http://chorny.net
Thread:
Alexandr Ciornii
Tels
Rafael Garcia-Suarez
Jos I. Boumans

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved