Darren Duncan wrote:
Dave Whipp wrote:
Similarly (0..1).Seq should most likely return Real numbers


No it shouldn't, because the endpoints are integers.

If you want Real numbers, then say "0.0 .. 1.0" instead.

-- Darren Duncan

That would be inconsistent. $x ~~ 0..1 means 0 <= $x <= 1. The fact that the endpoints are integers does not imply the the range does not include non-integer reals.

My argument is that iterating a range could be defined to give you a uniform distribution of values that would smart match true against that range -- and that such a definition would be just as reasonable as (and perhaps more general than) one that says that you get an incrementing ordered set of integers across that range.

Reply via email to