Skip to main content

Re: Remove "generic" multiply/divide operations from Quantity

  • From: Martin Desruisseaux < >
  • To:
  • Subject: Re: Remove "generic" multiply/divide operations from Quantity
  • Date: Sat, 18 Oct 2014 16:30:42 +0900
  • Organization: Geomatys

Le 17/10/14 10:20, Werner Keil a écrit :
>
> Actually JEP101 is extremely similar to Otavio's aim:
> http://openjdk.java.net/jeps/101
>
No. JEP-101 was not about expanding the capability of Java parameterized
types (i.e. giving us the capability to express new kinds of
relationships between input and output types). *It has no impact on
casting.* It is only about *type inference*, i.e. reducing the need to
specify the parameterized type in place where the compiler should have
been able to find it under the current rule of Java parameterized type.

In other words, with JEP-101:

  * More Collections.<String>singleton(...) expressions can be
    simplified in Collections.singleton(...) (note the removal of
    <String>, and note that the removed part was an explicit
    parameterized type, *not a cast*).
  * More Collection<String> c = foo() expressions can be simplified as
    Collection<> c = foo(). Note that the removed part was an explicit
    parameterized type, *not a cast*.

JEP-101 is of no help for Quantity.multiply(Quantity). If you accept my
proposal in my previous email to take the logical arguments
step-by-step, you will hopefully understand. Otherwise this discussion
is hopeless.

    Martin



Re: Remove "generic" multiply/divide operations from Quantity

(continued)

Re: Remove "generic" multiply/divide operations from Quantity

Werner Keil 10/17/2014

Re: Remove "generic" multiply/divide operations from Quantity

Martin Desruisseaux 10/18/2014

Re: Remove "generic" multiply/divide operations from Quantity

Martin Desruisseaux 10/18/2014

Re: Remove "generic" multiply/divide operations from Quantity

Martin Desruisseaux 10/18/2014

Re: Remove "generic" multiply/divide operations from Quantity

Martin Desruisseaux 10/18/2014

Re: Remove "generic" multiply/divide operations from Quantity

Werner Keil 10/17/2014

Re: Remove "generic" multiply/divide operations from Quantity

Martin Desruisseaux 10/18/2014

Re: Remove "generic" multiply/divide operations from Quantity

Martin Desruisseaux 10/17/2014

Re: Remove "generic" multiply/divide operations from Quantity

Werner Keil 10/17/2014

Re: Remove "generic" multiply/divide operations from Quantity

Martin Desruisseaux 10/17/2014

Re: Remove "generic" multiply/divide operations from Quantity

Martin Desruisseaux 10/18/2014

Re: Remove "generic" multiply/divide operations from Quantity

Jean-Marie Dautelle 10/17/2014

Re: Remove "generic" multiply/divide operations from Quantity

Werner Keil 10/17/2014

Re: Remove "generic" multiply/divide operations from Quantity

Martin Desruisseaux 10/18/2014

Re: Remove "generic" multiply/divide operations from Quantity

Werner Keil 10/18/2014

Re: Remove "generic" multiply/divide operations from Quantity

Martin Desruisseaux 10/18/2014

Re: Remove "generic" multiply/divide operations from Quantity

Martin Desruisseaux 10/18/2014

Re: Remove "generic" multiply/divide operations from Quantity

Martin Desruisseaux 10/17/2014

Re: Remove "generic" multiply/divide operations from Quantity

Werner Keil 10/16/2014

Re: Remove "generic" multiply/divide operations from Quantity

Martin Desruisseaux 10/18/2014
 
 
Close
loading
Please Confirm
Close