Hi folks,
It feels a bit strange that you can't pass an `InstantSource` to
`Instant.now(...)`, but you _can_ pass a `Clock` (which of course has a
"useless" `ZoneId` when creating an `Instant`). Therefore, I'd like to
propose one of the following API changes:
1) adding `Instant.now(InstantSource)
ndard to use the minus sign
> for
> >>> the operation "point - point = vector," even when "point + point"
> is
> >>> not defined, and to use all the other standard idioms for
> >>> subtraction; the Wikipedia article use
g we can achieve the same clarity for instant -
instant by using the obvious name: instant.minus(instant)
Thanks!
-Kurt Alfred Kluever
On Fri, Apr 26, 2024 at 11:07 AM Roger Riggs wrote:
> A constructive API enhancement.
> Created JDK-8331202 <https://bugs.openjdk.org/browse/JDK-8331202>
&
e
discussion).
While we generally don't like having 2 public APIs that accomplish the same
thing, in this case we feel the discoverability and simplicity of the new
API(s) outweighs the cost of an additional public API.
Please consider this a +1 from our team to add instant.minus(instant).
Re