Use Advanced Search to search the entire archive.
Re: Remove "generic" multiply/divide operations from Quantity
- From: Werner Keil <
>
- To:
- Subject: Re: Remove "generic" multiply/divide operations from Quantity
- Date: Fri, 17 Oct 2014 03:20:08 +0200
Actually JEP101 is extremely similar to Otavio's aim:
http://openjdk.java.net/jeps/101
If along the JEP "Error, expected Quantity<Area>, found Quantity<Mass>"
would also work for methods like multiply() or divide() as it does for all
others like add(), subtract(), etc. it would be nice, but it seems it would
of course only do so from Java SE 8 on or even later.
Nobody in the EC really gives a damn about such a detail to be honest,
unless they are involved in a JSR like Leo or myself they care about the
license, read the Spec document (some, not all;-) or at most ask people in
their company.
Mohamed seconding Otavio's proposal sounds like e.g. MoroccoJUG feels they
also support it, at least he's among those voting for it in the EC.
Both are perfectly fine with the Java language standard, while some methods
e.g. asType() cause a lit of trouble under SE 8u20 and above.
Werner