commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Barnhill (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (NUMBERS-68) Numbers are "value" objects
Date Fri, 02 Mar 2018 09:43:00 GMT

    [ https://issues.apache.org/jira/browse/NUMBERS-68?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16383402#comment-16383402
] 

Eric Barnhill commented on NUMBERS-68:
--------------------------------------

I read up on this today.

For this C and C++ have no standard, they only have standards for == and != .

In Matlab the > operator compares the real components But, it could just as easily be magnitudes.
There is no mathematical standard.

So it might as well be left up to the users, who can create an anonymous Comparator to suit
themselves.

> Numbers are "value" objects
> ---------------------------
>
>                 Key: NUMBERS-68
>                 URL: https://issues.apache.org/jira/browse/NUMBERS-68
>             Project: Commons Numbers
>          Issue Type: Task
>          Components: complex, fraction, quaternion
>            Reporter: Gilles
>            Priority: Major
>              Labels: api, design, gsoc2018
>             Fix For: 1.0
>
>
> Consider making _value_ classes {{final}}.
> See http://blog.joda.org/2014/03/valjos-value-java-objects.html



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message