larry | 1 May 2006 03:51
Picon

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

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
 <at>  <at>  -107,9 +107,9  <at>  <at> 

     say #( embedded comment ) "hello, world!";

-    $object.#{ embedded comments }.say;
+    $object\#{ embedded comments }.say;

-    $object.#「
+    $object\ #「
 	embedded comments
     」.say;

 <at>  <at>  -160,7 +160,7  <at>  <at> 

     $object\#{ foo }.say

(Continue reading)

larry | 1 May 2006 03:55
Picon

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

Author: larry
Date: Sun Apr 30 18:55:42 2006
New Revision: 9048

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

Log:
Couple more long dots.

Modified: doc/trunk/design/syn/S02.pod
==============================================================================
--- doc/trunk/design/syn/S02.pod	(original)
+++ doc/trunk/design/syn/S02.pod	Sun Apr 30 18:55:42 2006
 <at>  <at>  -255,7 +255,7  <at>  <at> 

 Use some variant of

-    foo.
+    foo\
     .method

 if you mean the postfix method call.
 <at>  <at>  -1606,7 +1606,7  <at>  <at> 

     foo.bar		# foo().bar	-- postfix prevents args
     foo .bar		# foo($_.bar)	-- no postfix starts with whitespace
-    foo. .bar		# foo().bar	-- long dot, so postfix
+    foo\ .bar		# foo().bar	-- long dot, so postfix
     foo++		# foo()++	-- postfix
(Continue reading)

autrijus | 1 May 2006 10:31
Picon

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

Author: autrijus
Date: Mon May  1 01:31:24 2006
New Revision: 9050

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

Log:
* S02: even more long dot fixes.

Modified: doc/trunk/design/syn/S02.pod
==============================================================================
--- doc/trunk/design/syn/S02.pod	(original)
+++ doc/trunk/design/syn/S02.pod	Mon May  1 01:31:24 2006
 <at>  <at>  -939,8 +939,9  <at>  <at> 
 is the variable name, including any sigil.  The package object can
 be derived from a type name by use of the C<::> postfix operator:

-    MyType. .::. .{'$foo'}
-    MyType::<$foo>              # same thing
+    MyType::<$foo>
+    MyType.::.{'$foo'}          # same thing with dots
+    MyType\ .::\ .{'$foo'}      # same thing with long dots

 (Directly subscripting the type with either square brackets or curlies
 is reserved for various generic type-theoretic operations.  In most other
 <at>  <at>  -1677,9 +1678,9  <at>  <at> 
 pairs.  To align values of option pairs, you may use the
 "long dot" postfix forms:

(Continue reading)

autrijus | 1 May 2006 10:33
Picon

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

Author: autrijus
Date: Mon May  1 01:33:08 2006
New Revision: 9051

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

Log:
* S04: minor typo cleanup.
* S04: Document a consequence caused by the statement-terminating
       end-of-line block rule:

    # Without the trailing comma, this becomes a code block
    my $hash = {
        1 => { 2 => 3, 4 => 5 },
    };

  In other words, nested hash literals in other hash literals
  must _not_ be statement-ending. 

Modified: doc/trunk/design/syn/S04.pod
==============================================================================
--- doc/trunk/design/syn/S04.pod	(original)
+++ doc/trunk/design/syn/S04.pod	Mon May  1 01:33:08 2006
 <at>  <at>  -121,7 +121,7  <at>  <at> 
 =head1 Statement-ending blocks

 A line ending with a closing brace "C<}>", followed by nothing but
-whitespace or comments, will terminates statement if an end of statement
+whitespace or comments, will terminate a statement if an end of statement
(Continue reading)

autrijus | 1 May 2006 10:35
Picon

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

Author: autrijus
Date: Mon May  1 01:35:22 2006
New Revision: 9052

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

Log:
* S12: The example
     <at> array.=sort
  is better written as
     <at> array .= sort
  as it's not impossible for "=sort" to be a postfix operator
  on its own.

Modified: doc/trunk/design/syn/S12.pod
==============================================================================
--- doc/trunk/design/syn/S12.pod	(original)
+++ doc/trunk/design/syn/S12.pod	Mon May  1 01:35:22 2006
 <at>  <at>  -503,7 +503,7  <at>  <at> 

 You can call an in-place mutator method like this:

-     <at> array.=sort;
+     <at> array .= sort;

 If there is a C<self:sort> operator defined, that will be used.  Otherwise
 one will be autogenerated from the ordinary C<sort> operator, on the

(Continue reading)

Smylers | 1 May 2006 14:15

Re: A shorter long dot

Jonathan Lang writes:

> Larry Wall wrote:
> 
> > I don't see much downside to \. as a long dot.
> 
> The only remaining problem that I see for the long dot is largely
> orthogonal to the selection of the first and last characters - namely,
> that your only choice for filler is whitespace.

Why's that a "problem"?

Folks want to be able to line stuff up, and to split statements over
multiple lines.  This is now possible.

Smylers

Dr.Ruud | 1 May 2006 17:15
Picon

Re: A shorter long dot

"Jonathan Lang" schreef:

> When is the last time that you saw an underscore-only method name?

  sub _{print"$_\n"};

--

-- 
Affijn, Ruud

"Gewoon is een tijger."

autrijus | 1 May 2006 17:43
Picon

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

Author: autrijus
Date: Mon May  1 08:43:47 2006
New Revision: 9069

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

Log:
* S03: Correct the perl5ish "map" example to have an extra comma.
  17:44 < TimToady> audreyt: foo {...} 1,2,3 is wrong, needs a comma.

Modified: doc/trunk/design/syn/S03.pod
==============================================================================
--- doc/trunk/design/syn/S03.pod	(original)
+++ doc/trunk/design/syn/S03.pod	Mon May  1 08:43:47 2006
 <at>  <at>  -698,8 +698,8  <at>  <at> 
 The new operators C<< ==> >> and C<< <== >> are akin to UNIX pipes, but
 work with functions that accept and return lists.  For example,

-      <at> result = map { floor($^x / 2) }
-                 grep { /^ \d+ $/ }
+      <at> result = map { floor($^x / 2) },
+                 grep { /^ \d+ $/ },
                     <at> data;

 Can also now be written:

autrijus | 1 May 2006 18:18
Picon

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

Author: autrijus
Date: Mon May  1 09:18:16 2006
New Revision: 9071

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

Log:
* S06: Add Whatever to the list of "Undefined types".

Modified: doc/trunk/design/syn/S06.pod
==============================================================================
--- doc/trunk/design/syn/S06.pod	(original)
+++ doc/trunk/design/syn/S06.pod	Mon May  1 09:18:16 2006
 <at>  <at>  -1311,6 +1311,7  <at>  <at> 
 functions.  (See S02 for how failures are handled.)

     Undef       Undefined (can serve as a prototype object of any class)
+    Whatever    Wildcard (like undef, but subject to do-what-I-mean via MMD)
     Failure     Failure (throws an exception if not handled properly)

 =head2 Immutable types

autrijus | 1 May 2006 19:32
Picon

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

Author: autrijus
Date: Mon May  1 10:32:02 2006
New Revision: 9076

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

Log:
* S03.pod: Retire lvalue undef and replace it with lvalue Whatever:

    # Perl 5
    (undef, undef, $x) = (1,2,3);

    # Perl 6
    (*, *, $x) = (1,2,3);

Modified: doc/trunk/design/syn/S03.pod
==============================================================================
--- doc/trunk/design/syn/S03.pod	(original)
+++ doc/trunk/design/syn/S03.pod	Mon May  1 10:32:02 2006
 <at>  <at>  -12,9 +12,9  <at>  <at> 

   Maintainer: Larry Wall <larry <at> wall.org>
   Date: 8 Mar 2004
-  Last Modified: 30 Apr 2006
+  Last Modified: 2 May 2006
   Number: 3
-  Version: 25
+  Version: 26

(Continue reading)


Gmane