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

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

From:
larry
Date:
April 10, 2006 20:41
Subject:
[svn:perl6-synopsis] r8641 - doc/trunk/design/syn
Message ID:
20060411034132.93F4FCB9EC@x12.develooper.com
Author: larry
Date: Mon Apr 10 20:41:31 2006
New Revision: 8641

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

Log:
Revised q<< <<foo>> >> to do bracket counting of long brackets internally.


Modified: doc/trunk/design/syn/S02.pod
==============================================================================
--- doc/trunk/design/syn/S02.pod	(original)
+++ doc/trunk/design/syn/S02.pod	Mon Apr 10 20:41:31 2006
@@ -112,15 +112,13 @@
 =item *
 
 For all quoting constructs that use user-selected brackets, multiple,
-adjacent, identical opening brackets must always be matched by
-an equal number of adjacent closing brackets.  Use of two or more
-brackets disables bracket counting within the quoted text and merely
-scans for the closing set of brackets.  Hence this comment legally
-contains unmatched brackets and even an unmatched C<{{>:
-
-    #{{
-	Comment contains unmatched { and { { { { and {{ and } and } } but not:
-    }}
+adjacent, identical opening brackets must always be matched by an
+equal number of adjacent closing brackets.  Bracket counting naturally
+applies only to sets of brackets of the same length:
+
+    say #{{
+	Comment contains unmatched } and { { { { plus a counted {{ ... }} pair.
+    }} q<< <<woot>> >>   # says "<<woot>>"
 
 Note however that bare circumfix or postcircumfix C<<< <<...>> >>> is
 not a user-selected bracket, but the ASCII variant of the C<< «...» >>



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