Re: Synopsis 02: Range objects

2009-08-25 Thread Larry Wall
On Tue, Aug 25, 2009 at 02:58:05PM -0700, Jon Lang wrote: : Michael Zedeler wrote: : >> The obvious (default) choice for a step size would be the precision of : >> the more precise of the two values.  So 0.0001 in your example above. : >> : > : > Well... maybe. How do you specify the intended preci

Re: Synopsis 02: Range objects

2009-08-25 Thread Jon Lang
Mark J. Reed wrote: > On Tue, Aug 25, 2009 at 5:58 PM, Jon Lang wrote: >> Also, I want to second David Green's point: we're not talking "Range" >> and "Interval" here; we're talking "Range" and "Series". > > But a "series" refers to a more general concept than a discrete range. >  I still think Ran

Re: Synopsis 02: Range objects

2009-08-25 Thread Mark J. Reed
On Tue, Aug 25, 2009 at 5:58 PM, Jon Lang wrote: > Also, I want to second David Green's point: we're not talking "Range" > and "Interval" here; we're talking "Range" and "Series". But a "series" refers to a more general concept than a discrete range. I still think Range and Interval fit better.

Re: Synopsis 02: Range objects

2009-08-25 Thread Jon Lang
Michael Zedeler wrote: >> The obvious (default) choice for a step size would be the precision of >> the more precise of the two values.  So 0.0001 in your example above. >> > > Well... maybe. How do you specify the intended precision, then? If I want > the values from 1 to 2 with step size 0.01, I

Re: S26 - The Next Generation

2009-08-25 Thread Jon Lang
I promised some further thoughts; here they are: As written, declarator aliasing attaches the alias to a piece of code, and draws both the name and the alias from that.  What about using a special case of the declarator block for this?  That is:    class Database::Handle { #=alias        has IO $

Re: Synopsis 02: Range objects

2009-08-25 Thread Michael Zedeler
James Cloos wrote: "Michael" == Michael Zedeler writes: Michael> The Range 1.0001 .. 2.15 makes sense as an interval definition, but Michael> there can hardly be a useful list definition without defining a step Michael> size, at least, making it possible to use step sizes less tha

Re: S26 - The Next Generation

2009-08-25 Thread Damian Conway
Smylers pointed out: >>    * Hence it must always parsed using full Perl 6 grammar: perl6 -doc > > Having a multi-character option preceded by a single hyphen doesn't play > well with bundling of single-character options... You make many good points. Changed to: perl --doc Thanks, Damian

Re: Synopsis 02: Range objects

2009-08-25 Thread David Green
On 2009-Aug-24, at 4:17 pm, Daniel Ruoso wrote: Em Seg, 2009-08-24 às 23:50 +0200, Michael Zedeler escreveu: The most elegant solution would be if the data types themselves indicated their capabilities. One thing I think you missed entirely is the fact that the infix:<..> operator is a multi su

Re: Synopsis 02: Range objects

2009-08-25 Thread James Cloos
> "Michael" == Michael Zedeler writes: Michael> The Range 1.0001 .. 2.15 makes sense as an interval definition, but Michael> there can hardly be a useful list definition without defining a step Michael> size, at least, making it possible to use step sizes less than one. The obvious (default)