Re: r25891 - in docs/Perl6/Spec: . S32-setting-library

2009-03-18 Thread Larry Wall
On Wed, Mar 18, 2009 at 06:32:18PM -0700, Jon Lang wrote: : > +    method !eigenstates (Junction $j: --> List) : : Shouldn't that be lowercase-j junction? Maybe, though there might be a Junction role involved for subtype matches like that one. Larry

Re: r25891 - in docs/Perl6/Spec: . S32-setting-library

2009-03-18 Thread Jon Lang
> +    method !eigenstates (Junction $j: --> List) Shouldn't that be lowercase-j junction? -- Jonathan "Dataweaver" Lang

r25902 - docs/Perl6/Spec

2009-03-18 Thread pugs-commits
Author: lwall Date: 2009-03-19 01:43:53 +0100 (Thu, 19 Mar 2009) New Revision: 25902 Modified: docs/Perl6/Spec/S05-regex.pod Log: [S05] define .caps and .chunks methods on match objects Modified: docs/Perl6/Spec/S05-regex.pod ===

Re: r25821 - docs/Perl6/Spec

2009-03-18 Thread Jonathan Worthington
Mark J. Reed wrote: Shouldn't that desugar to (Int $ where 0)? After all, 0.WHAT is Int... Yes, I proposed that in my second reply too, after realizing .WHAT gave us that too. :-) Of course, then someone will expect multi sub fib (0|1) { return @_[0] } to DTRT here... That's fine, bec

Re: r25821 - docs/Perl6/Spec

2009-03-18 Thread Mark J. Reed
2009/3/18 Moritz Lenz : >> +You can leave out the block when matching against a literal value of some >> +kind: >> + >> +    multi sub fib ($n where 0|1) { return $n } >> +    multi sub fib (Int $n) { return fib($n-1) + fib($n-2) } >> + >> +In fact, you can leave out the 'where' declaration altoget

Dallas.p6m

2009-03-18 Thread fREW Schmidt
Hello friends! s1n and I decided that we would start Dallas.p6m as we are close to each other geographically speaking. We are meeting tomorrow (Thursday, March 19, 7:00PM) at a coffee shop with free wifi. The address is 985 W Bethany Dr Allen, TX 75013. So far it looks like it will be s1n, me, a

Re: r25821 - docs/Perl6/Spec

2009-03-18 Thread Jonathan Worthington
Jonathan Worthington wrote: Moritz Lenz wrote: pugs-comm...@feather.perl6.nl wrote: +You can leave out the block when matching against a literal value of some +kind: + +multi sub fib ($n where 0|1) { return $n } +multi sub fib (Int $n) { return fib($n-1) + fib($n-2) } + +In fact, yo

Re: r25821 - docs/Perl6/Spec

2009-03-18 Thread Jonathan Worthington
Moritz Lenz wrote: pugs-comm...@feather.perl6.nl wrote: +You can leave out the block when matching against a literal value of some +kind: + +multi sub fib ($n where 0|1) { return $n } +multi sub fib (Int $n) { return fib($n-1) + fib($n-2) } + +In fact, you can leave out the 'where' d

Re: r25821 - docs/Perl6/Spec

2009-03-18 Thread Moritz Lenz
pugs-comm...@feather.perl6.nl wrote: > Author: masak > Date: 2009-03-14 13:34:42 +0100 (Sat, 14 Mar 2009) > New Revision: 25821 > > Modified: >docs/Perl6/Spec/S12-objects.pod > Log: > specced syntactic 'where' sugar in param lists > > Modified: docs/Perl6/Spec/S12-objects.pod > ==

r25895 - docs/Perl6/Spec

2009-03-18 Thread pugs-commits
Author: coke Date: 2009-03-18 21:10:41 +0100 (Wed, 18 Mar 2009) New Revision: 25895 Modified: docs/Perl6/Spec/S02-bits.pod Log: Correct minor typo in metadata. (... unless that's Welsh, in which case my bad.) Modified: docs/Perl6/Spec/S02-bits.pod

r25891 - in docs/Perl6/Spec: . S32-setting-library

2009-03-18 Thread pugs-commits
Author: lwall Date: 2009-03-18 20:46:15 +0100 (Wed, 18 Mar 2009) New Revision: 25891 Modified: docs/Perl6/Spec/S02-bits.pod docs/Perl6/Spec/S06-routines.pod docs/Perl6/Spec/S09-data.pod docs/Perl6/Spec/S32-setting-library/Containers.pod Log: junctions are now considered a native type w

r25890 - docs/Perl6/Spec

2009-03-18 Thread pugs-commits
Author: lwall Date: 2009-03-18 20:04:16 +0100 (Wed, 18 Mar 2009) New Revision: 25890 Modified: docs/Perl6/Spec/S03-operators.pod Log: kill off int as a prefix operator to avoid confusion with the type name Modified: docs/Perl6/Spec/S03-operators.pod ===

r25889 - docs/Perl6/Spec

2009-03-18 Thread pugs-commits
Author: lwall Date: 2009-03-18 19:24:25 +0100 (Wed, 18 Mar 2009) New Revision: 25889 Modified: docs/Perl6/Spec/S05-regex.pod Log: Destroy the term "result object" in favor of "abstract object" and AST-Think. Modified: docs/Perl6/Spec/S05-regex.pod =

Re: a junction or not

2009-03-18 Thread TSa (Thomas Sandlaß)
HaloO, On Tuesday, 17. March 2009 10:25:27 David Green wrote: > > That is, it would return a Junction of Str, not a Str. So the > > question is how to get something that returns an expression to the > > effect of: > > 'any(' ~ $choice.eigenstates.«perl.join(',') ~ ')' > > say $choice.perl > >

Re: a junction or not

2009-03-18 Thread Bruce Keeler
On 3/15/09 11:19 AM, Richard Hainsworth wrote: The following (the n:> is to mark the lines) are legal: 1:> my @x = 1,2,3,4; ([+] @x).say; # output 10 2:> my @x = 1|11,2,3,4; ([+] @a).perl.say; # output any(10,20) 3:> my @x = 1|11,2,3,4; ([+] @a).eigenstates.min.say; # output 10 However, the nex