develooper Front page | perl.perl6.language | Postings from October 2006

[svn:perl6-synopsis] r12873 - doc/trunk/design/syn

From:
larry
Date:
October 8, 2006 16:52
Subject:
[svn:perl6-synopsis] r12873 - doc/trunk/design/syn
Message ID:
20061008235157.34226CBA4D@x12.develooper.com
Author: larry
Date: Sun Oct  8 16:51:56 2006
New Revision: 12873

Modified:
   doc/trunk/design/syn/S02.pod

Log:
Allow Perl-consistent :foo and # policies within «...»


Modified: doc/trunk/design/syn/S02.pod
==============================================================================
--- doc/trunk/design/syn/S02.pod	(original)
+++ doc/trunk/design/syn/S02.pod	Sun Oct  8 16:51:56 2006
@@ -12,9 +12,9 @@
 
   Maintainer: Larry Wall <larry@wall.org>
   Date: 10 Aug 2004
-  Last Modified: 1 Oct 2006
+  Last Modified: 8 Oct 2006
   Number: 2
-  Version: 74
+  Version: 75
 
 This document summarizes Apocalypse 2, which covers small-scale
 lexical items and typological issues.  (These Synopses also contain
@@ -1462,6 +1462,15 @@
 C<Pair> notation is also recognized inside C<«...»> and such "words" are
 returned as C<Pair> objects.
 
+Colon pairs (but not arrow pairs) are recognized within double angles.
+In addition, the double angles allow for comments beginning with C<#>.
+These comments work exactly like ordinary comments in Perl code.
+That is, C<#> at beginning of line is always a line-end comment,
+otherwise a following bracket sequence implies an inline comment;
+also, unlike in the shells, any literal C<#> must be quoted, even
+ones without whitespace in front of them, but note that this comes
+more or less for free with a colon pair like C<< :char<#x263a> >>.
+
 =item *
 
 There is now a generalized adverbial form of Pair notation.  The



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