develooper Front page | perl.perl5.porters | Postings from May 2007

RFC: multiline comments

Thread Next
From:
Alexandr Ciornii
Date:
May 23, 2007 05:37
Subject:
RFC: multiline comments
Message ID:
2f1541220705230536s67e187ddr13e36ce85988f4ad@mail.gmail.com
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 Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About