-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename Converter.isLinear() or change its specification #39
Comments
Unless this can be addressed in JavaDoc only, it would be a breaking change to the API. Even for a MR we'd have to be extremely careful now that the API is Final. Adding e.g. the suggested |
Yes, I know that backward compatibility is important. But currently either the method name is misleading or the method definition is in disagreement with the usual meaning of "linear". An alternative to method renaming would be to change the method specification to comply with the usual definition of "linear", but it would also be an incompatible change (in method behavior). |
Unless any of that could simply be described in JavaDoc, even changing the Spec document would require a MR. More substantial changes to JavaDoc, API or at least JavaDoc and similar content is likely to come up in Spring 2018 (Before the CGPM 2018 (http://www.bipm.org/en/measurement-units/rev-si/) so let's keep those changes in mind and apply them when the SI standard is also meant to change. |
In general a Currently we use I agree that We might also consider introducing Other useful characteristics for
See also Java's Characteristics for Collector ... |
Should the name be |
@desruisseaux, @filipvanlaenen, @andi-huber, @thodorisbais (you are probably newer to this thread) there has been little activity over the last year. How strong do you feel about this change? It would be better to get it into 2.0 and deprecate the old name if renaming was found very crucial. Otherwise maybe some clarification in the JavaDoc would do (which could also go into a MR) |
If we agree that So from my point of view the name should stay, unless you intend a different use, other than a check for commutativity. |
We can keep the name as-is with a clarification in the javadoc saying that it is slightly different meaning than "linear equation". The link given by Andi seems to match, indeed. |
Thanks, then the priority is a bit less critical but of course it would be nice to have it with 2.0 |
I arrived here a bit late, but...do we already have a decision? If I'm not mistaken, we keep the name as is and we just try to adjust the javadoc to the link Andi sent, right? |
Closed with #181 . |
PR #182 created |
I saw it, thanks, I asked @desruisseaux to have a look at it, hope he gets a chance. |
#39: improving Javadoc for UnitConverter#isLinear and #isIdentity
The
Converter.isLinear()
definition given in Javadoc basically restricts "linear" conversions to this formula:The definition given in
Converter.isLinear()
does not allow the following formula, despite that formula being usually considered linear too:So conversions between Celsius and Kelvin (or between Celsius and Fahrenheit) are not linear according the definition given in
Converter.isLinear()
javadoc, which I found surprising. It seems to me that the "isLinear" name is not appropriate for that method. Maybe "isScale" would have been more accurate.Needs #95
The text was updated successfully, but these errors were encountered: