Re: [svn:perl6-synopsis] r14549 - doc/trunk/design/syn
[EMAIL PROTECTED] wrote: +0 .. ^10 # 0 .. (0..9) + +(It's not yet clear what the second one should mean, but whether it +succeeds or fails, it won't do what you want.) Ah, bob! (bottles of beer) say, say - for ^0 .. ^5; 0 - 0 1 - 0 1 2 - 0 1 2 3 - 0 1 2 3 4 - ;) -- Affijn, Ruud
Re: [svn:perl6-synopsis] r14549 - doc/trunk/design/syn
On Wed, Jun 11, 2008 at 04:49:18PM -0700, [EMAIL PROTECTED] wrote: -$min ..^ $max$ min .. $max-1 -$min .. ^$max# $min .. (0..$max-1) +0 ..^ 10 # 0 .. 9 +0 .. ^10 # 0 .. (0..9) Ah, I should have been more specific - I meant that, since ~~ treats Ranges as continuous intervals, 0 ..^ 10 isn't the same as 0 .. 9. Although I guess there's no way to unabbreviate 0 ..^ 10... -ryan
Re: [svn:perl6-synopsis] r14549 - doc/trunk/design/syn
On Wed, Jun 11, 2008 at 08:20:41PM -0400, Ryan Richter wrote: : On Wed, Jun 11, 2008 at 04:49:18PM -0700, [EMAIL PROTECTED] wrote: : -$min ..^ $max $ min .. $max-1 : -$min .. ^$max # $min .. (0..$max-1) : +0 ..^ 10 # 0 .. 9 : +0 .. ^10 # 0 .. (0..9) : : Ah, I should have been more specific - I meant that, since ~~ treats : Ranges as continuous intervals, 0 ..^ 10 isn't the same as 0 .. 9. : Although I guess there's no way to unabbreviate 0 ..^ 10... Well, maybe 0 .. 10-ε or some such. Larry