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
|