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

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

From:
larry
Date:
October 10, 2006 16:55
Subject:
[svn:perl6-synopsis] r13022 - doc/trunk/design/syn
Message ID:
20061010235535.5CC24CBA4D@x12.develooper.com
Author: larry
Date: Tue Oct 10 16:55:33 2006
New Revision: 13022

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

Log:
Clarification of non-ambiguity of «*»


Modified: doc/trunk/design/syn/S03.pod
==============================================================================
--- doc/trunk/design/syn/S03.pod	(original)
+++ doc/trunk/design/syn/S03.pod	Tue Oct 10 16:55:33 2006
@@ -770,6 +770,15 @@
 
     $left «*» $right
 
+[Note: if you are worried about Perl getting confused by something like this:
+
+    foo «*»
+
+then you shouldn't worry about it, because unlike previous versions,
+Perl 6 never guesses whether the next thing is a term or operator.
+In this case it is always expecting a term unless C<foo> is predeclared
+to be a 0-ary sub.]
+
 The upgrade never happens on the "blunt" end of a hyper.  If you write
 
     $bigger «*« $smaller



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