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

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

From:
larry
Date:
August 14, 2006 12:36
Subject:
[svn:perl6-synopsis] r10940 - doc/trunk/design/syn
Message ID:
20060814193603.2F374CB9BB@x12.develooper.com
Author: larry
Date: Mon Aug 14 12:36:02 2006
New Revision: 10940

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

Log:
Clarified that comments may not contain unspace.  agentzh++ and luqui++.


Modified: doc/trunk/design/syn/S02.pod
==============================================================================
--- doc/trunk/design/syn/S02.pod	(original)
+++ doc/trunk/design/syn/S02.pod	Mon Aug 14 12:36:02 2006
@@ -12,9 +12,9 @@
 
   Maintainer: Larry Wall <larry@wall.org>
   Date: 10 Aug 2004
-  Last Modified: 10 Aug 2006
+  Last Modified: 14 Aug 2006
   Number: 2
-  Version: 63
+  Version: 64
 
 This document summarizes Apocalypse 2, which covers small-scale
 lexical items and typological issues.  (These Synopses also contain
@@ -210,6 +210,22 @@
 
 =item *
 
+An unspace may contain a comment, but a comment may not contain an unspace.
+In particular, end-of-line comments do not treat backslash as significant.
+If you say:
+
+    #\ (...
+
+it is an end-of-line comment, not an embedded comment.  Write:
+
+    \ #(
+	...
+       )
+
+to mean the other thing.
+
+=item *
+
 In general, whitespace is optional in Perl 6 except where it is needed
 to separate constructs that would be misconstrued as a single token or
 other syntactic unit.  (In other words, Perl 6 follows the standard



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