Use Advanced Search to search the entire archive.
Re: Other experts
- From: Martin Desruisseaux <
>
- To:
- Subject: Re: Other experts
- Date: Sat, 18 Oct 2014 19:18:19 +0900
- Organization: Geomatys
Le 17/10/14 23:09, Werner Keil a écrit :
>
It was around, when the EG of JSR 108 eventually withdrew the JSR. And
>
without having been on board then I assume, it was because of similar
>
disputes and discussions;-O
It was because the group had no activity at all for a year or so. We got
the notification from JCP one day without any prior advise. It was not a
decision from the group and everyone were surprised.
>
In Kawa you can pretty much do anything and you normally get a result.
>
Errors at most are thrown at runtime.
>
At least they get runtime errors. With UNITSOFMEASUREMENT-62 we do not
even get those errors - we get false feeling of safety and unpredictable
results where the type actually used is wrong.
>
If we wanted to enforce strict type safety, then similar to OpenXC
>
there should be concrete classes for everything;-)
Again Werner no one ever in this thread has suggested that. Runtime
safety is okay where it is the best we can do.
* Casting Quantity<?> return value to (Mass) provides that runtime safety.
* Casting Quantity<?> return value to (Quantity<Mass>) does not.
* UNITSOFMEASUREMENT-62 makes things worst by doing nothing more than
hiding the (Quantity<Mass>) problem.
Please understand that *I'm not saying that **Mass**should appear in the
method signature*. The method signature is Quantity<?>
multiply(Quantity<?>), period. It is the user who have to cast.
Martin