[squeak-dev] The Inbox: Collections-nice.825.mcz

Fabio Niephaus lists at fniephaus.com
Fri Sep 13 06:50:04 UTC 2019


On Thu, 12 Sep 2019 at 1:02 am, Chris Muller <asqueaker at gmail.com> wrote:

> "An Interval reversed is generally an Interval, except when made of Float."
>> Should ReversedInterval be renamed to ReversedFloatInterval then?
>>
>
> +1
>
> Interval was designed for Integers only.  IMO, it should be copied to a
> separate class, FloatInterval, to implement this capability.
>

Does anyone actually need Float support in Interval at this point? Or would
it make sense to just disallow Floats in Interval for the time being?

Fabio


>
>
>>
>> Nonetheless, this seems to fix #testIntervalOfFloatLast and
>> #testIntervalOfFloatReversed of IntervalTest. Do we want to integrate
>> this proposal or shall we mark these two tests as expected failures?
>>
>> Fabio
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20190913/f68098c9/attachment.html>


More information about the Squeak-dev mailing list