[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Range syntax theory

Markus

10/1/2004 3:26:00 PM

> # BTW, I'm not entirely happy with Ruby's ranges, I'll have you know.
> # They are only really useful for integers and perhaps some strings,
> # but they _try_ to be useful for anything, and kind of botch it.
> # Further, they take two otherwise aliases methods -- member? and
> # include? -- and make them mean something different.

This is simply untrue. Float ranges and Time ranges are both very
useful, especially if you extend them (which in a language like ruby you
can). The sort of operations you'll want on Intervals (Time ranges) are
slightly different than you'll want on Error_bars, Bounding_box_sides,
and other sorts of Float ranges anyway.
If anything, I'd expand the range of ranges.

-- Markus