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

2006-04-02 Thread Dr.Ruud
Larry Wall schreef:
> Ruud H.G. van Tol:
>> Uri Guttman:

>>> When cast into an array, you can access all the positional
>>> arguments; Into a hash, all named arguments; Into a scalar, the
>>> invocant; Into code, into slurpy nameless block.
>> 
>> The last 'into' should be 'the'.

And it has become 'its', which is clearer.


>> s/Into/into/g
> 
> s[ s ( .* ) g ][s:g$0]
> 
> TomTiedy

Ack

-- 
Affijn, Ruud

"Gewoon is een tijger."
(posted via news://nntp.perl.org)


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

2006-04-01 Thread Larry Wall
On Sun, Apr 02, 2006 at 02:15:46AM +0200, Ruud H.G. van Tol wrote:
: Uri Guttman wrote:
: 
: > When cast into an array, you can access all the positional
: > arguments; Into a hash, all named arguments; Into a scalar, the
: > invocant; Into code, into slurpy nameless block.
: 
: The last 'into' should be 'the'.
: 
: s/Into/into/g

s[ s ( .* ) g ][s:g$0]

TomTiedy


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

2006-04-01 Thread Ruud H.G. van Tol
Uri Guttman wrote:

>   When cast into an array, you can access all the positional
>   arguments; Into a hash, all named arguments; Into a scalar, the
>   invocant; Into code, into slurpy nameless block.

The last 'into' should be 'the'.

s/Into/into/g

-- 
Affijn, Ruud




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

2006-04-01 Thread Uri Guttman
> "a" == autrijus  <[EMAIL PROTECTED]> writes:

  a> +You may cast C to other types with a prefix sigil operator:
  a> +
  a> +$args = \3; # same as "$args = \(3)"
  a> +$$args; # same as "$args as Scalar" or "Scalar($args)"
  a> +@$args; # same as '$args as Array"  or "Array($args)"
  a> +%$args; # same as '$args as Hash"   or "Hash($args)"
  a> +&$args; # same as '$args as Code"   or "Hash($args)"
  a> +

  a> +Casted as an array, you can access to all positionals.  Casted as
  a> +a hash, all nameds.  As a scalar, the invocant.  As a code, the
  a> +slurpy nameless block.

s/casted/cast/g

and i would word those as 'cast into an array'. here is my rewrite:

When cast into an array, you can access all the positional
arguments; Into a hash, all named arguments; Into a scalar, the
invocant; Into code, into slurpy nameless block.

uri

-- 
Uri Guttman  --  [EMAIL PROTECTED]   http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs    http://jobs.perl.org


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

2006-04-01 Thread Joe Gottman


> -Original Message-
> +You may cast C to other types with a prefix sigil operator:
> +
> +$args = \3; # same as "$args = \(3)"
> +$$args; # same as "$args as Scalar" or "Scalar($args)"
> +@$args; # same as '$args as Array"  or "Array($args)"
> +%$args; # same as '$args as Hash"   or "Hash($args)"
> +&$args; # same as '$args as Code"   or "Hash($args)"


Shouldn't this last one be
  +&$args; # same as '$args as Code"   or "Code($args)"

Joe Gottman