commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject Re: [lang] Why is a Range not a Pair?
Date Thu, 17 Mar 2011 17:00:59 GMT
Joda-Time has an Interval class, are you suggesting we implement one like
it?

Gary

On Thu, Mar 17, 2011 at 12:35 PM, Adrian Crum <
adrian.crum@sandglass-software.com> wrote:

> A range could also be viewed as an interval - in which case lowerBound and
> upperBound would make more sense. I imagine it depends on your perspective,
> or your interpretation of what a "range" is.
>
> -Adrian
>
>
> On 3/17/2011 9:03 AM, Gary Gregory wrote:
>
>> Why is a Range not a Pair?
>>
>> Because... is it fails the "is a kind of" OOD test?
>>
>> I could say that a range is a pair of bounds (an upper and lower bound.)
>>
>> I could argue that Range should subclass Pair. The question is: why are we
>> NOT eating our own dog food?
>>
>> Which then brings me to the names of the bounds for Range: minimum and
>> maximum, which IMO should be lowerBound and upperBound.
>>
>> Thoughts?
>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>


-- 
Thank you,
Gary

http://garygregory.wordpress.com/
http://garygregory.com/
http://people.apache.org/~ggregory/
http://twitter.com/GaryGregory

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message