Re: generality of Range

2009-10-04 Thread Darren Duncan
Moritz Lenz wrote: Darren Duncan wrote: However, I still don't see how one would retrieve the distinction between say "1..10" and "1^..^10". I suggest that an extra 2 methods such as .min_is_outside and .max_is_outside (each returns a Bool) could fit the bill, and in fact since I have Pugs wr

Re: generality of Range

2009-10-04 Thread Moritz Lenz
Darren Duncan wrote: > However, I still don't see how one would retrieve the distinction between say > "1..10" and "1^..^10". I suggest that an extra 2 methods such as > .min_is_outside and .max_is_outside (each returns a Bool) could fit the bill, > and in fact since I have Pugs write access

Re: generality of Range

2009-10-04 Thread Darren Duncan
Minimiscience wrote: > On Oct 4, 2009, at 12:47 PM, yary wrote: >> There was a big discussion about this on the list recently but I don't >> recall the resolutions. > > The resolution was r28344: . > The short version is that ranges are now primarily used f

Re: generality of Range

2009-10-04 Thread Jon Lang
yary wrote: > I'm confused between using ranges to generate a lazy list and using > them as criteria to match against. Indeed. It was my understanding that there was a recent change to Ranges so that they now exist primarily to be used as matching criteria. If you wish to generate a list, the pr

Re: generality of Range

2009-10-04 Thread Minimiscience
On Oct 4, 2009, at 12:47 PM, yary wrote: There was a big discussion about this on the list recently but I don't recall the resolutions. The resolution was r28344: . The short version is that ranges are now primarily used for testing inclusion in int

Re: generality of Range

2009-10-04 Thread yary
I'm confused between using ranges to generate a lazy list and using them as criteria to match against. These exclude continuous (non-countable) types- ... > 2. There must be a successor function, so that given an object from > the given domain, say a, successor(a) returns one and only one >

Re: generality of Range

2009-10-04 Thread Michael Zedeler
Hi Darren. Darren Duncan wrote: In a project of mine I'm looking to use Perl 6 Range values to represent continuous interval values in the most generic manner possible, meaning that the endpoint values could literally be of any type at all. [...] for a realistic example: my $a = ['Foo', 17

generality of Range

2009-10-04 Thread Darren Duncan
A question. In a project of mine I'm looking to use Perl 6 Range values to represent continuous interval values in the most generic manner possible, meaning that the endpoint values could literally be of any type at all. I just wanted to confirm that that would work in the general case, where