commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Colebourne <>
Subject Re: [LANG] Is a Range a kind of Pair?
Date Wed, 18 May 2011 16:54:00 GMT
On 18 May 2011 17:46, Matt Benson <> wrote:
> On Wed, May 18, 2011 at 11:32 AM, Gary Gregory <> wrote:
>> Why doesn't a Range does extend Pair? It's pretty clear (to me at least)
>> that a range is a pair of values.
>> Because the Pair is in our tuple package, it means that it should follow
>> tuple logic and be thought of as an ordered list of elements, in this case
>> two elements.
>> The methods that Range has that are not in Pair could be moved there.
> IMHO a Range is not precisely a Pair, though it could define its
> _limits_ in those terms.

The combined opinion of all at OpenGamma ($dayjob) is that a Range is
a very different beast to a Pair. Simply because there are two data
points, does not make it a pair :-)


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message