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

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

From:
larry
Date:
April 30, 2006 18:51
Subject:
[svn:perl6-synopsis] r9047 - doc/trunk/design/syn
Message ID:
20060501015115.21A62CBA47@x12.develooper.com
Author: larry
Date: Sun Apr 30 18:51:14 2006
New Revision: 9047

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

Log:
More long dot cleanup from trey++ et al.


Modified: doc/trunk/design/syn/S02.pod
==============================================================================
--- doc/trunk/design/syn/S02.pod	(original)
+++ doc/trunk/design/syn/S02.pod	Sun Apr 30 18:51:14 2006
@@ -107,9 +107,9 @@
 
     say #( embedded comment ) "hello, world!";
 
-    $object.#{ embedded comments }.say;
+    $object\#{ embedded comments }.say;
 
-    $object.#「
+    $object\ #「
 	embedded comments
     」.say;
 
@@ -160,7 +160,7 @@
 
     $object\#{ foo }.say
 
-reduce to a "long dot" rather than the range operator.  Valid ways to
+reduce to a "long dot".  Valid ways to
 insert a line break into a sequence of method calls include:
 
     $object\ # comment
@@ -202,23 +202,23 @@
 
     $x.++
 
-    $x. .++
+    $x\ .++
 
-    $x.#( comment ).++
-    $x.#((( comment ))).++
+    $x\#( comment ).++
+    $x\#((( comment ))).++
 
-    $x.
+    $x\
     .++
 
-    $x. 	# comment
+    $x\ 	# comment
     		# more comment
     .++
 
-    $x.#『	comment
+    $x\#『	comment
     		more comment
     』.++
 
-    $x.#[   comment 1
+    $x\#[   comment 1
     comment 2
     =begin podstuff
     whatever (pod comments ignore current parser state)
@@ -1368,18 +1368,15 @@
 
 =item 6. A sequence of one or more unparenthesized method call, followed by any of 1 through 5
 
-=item 7. An embedded comment that uses bracketing characters, such
-as .#(comment).
-
 =back
 
 In other words, this is legal:
 
-    "Val = $a.ord.#( Yikes! ).as('%x')\n"
+    "Val = $a.ord.as('%x')\n"
 
 and is equivalent to
 
-    "Val = { $a.ord.#( Yikes! ).as('%x') }\n"
+    "Val = { $a.ord.as('%x') }\n"
 
 
 =item *



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