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

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

From:
larry
Date:
April 2, 2008 09:49
Subject:
[svn:perl6-synopsis] r14535 - doc/trunk/design/syn
Author: larry
Date: Wed Apr  2 09:49:48 2008
New Revision: 14535

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

Log:
Another fix suggested by John M. Dlugosz++, whose name I can almost spell now.


Modified: doc/trunk/design/syn/S02.pod
==============================================================================
--- doc/trunk/design/syn/S02.pod	(original)
+++ doc/trunk/design/syn/S02.pod	Wed Apr  2 09:49:48 2008
@@ -1356,10 +1356,14 @@
 
 Subscripts now consistently dereference the container produced by
 whatever was to their left.  Whitespace is not allowed between a
-variable name and its subscript.  However, there is a corresponding
-B<dot> form of each subscript (C<@foo.[1]> and C<%bar.{'a'}>).  Constant
-string subscripts may be placed in angles, so C<%bar.{'a'}> may also
-be written as C<< %bar<a> >> or C<< %bar.<a> >>.
+variable name and its subscript.  However, there are two ways to
+stretch the construct out visually.  Since a subscript is a kind
+of postfix operator, there is a corresponding B<dot> form of each
+subscript (C<@foo.[1]> and C<%bar.{'a'}>) that makes the dereference
+a little more explicit. Constant string subscripts may be placed
+in angles, so C<%bar.{'a'}> may also be written as C<< %bar<a> >>
+or C<< %bar.<a> >>.  Additionally, you may insert extra whitespace
+using the unspace.
 
 =item *
 



Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About