Instant.now(Clock) and InstantSource

2024-06-03 Thread Kurt Alfred Kluever
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)

Re: In support of Instant.minus(Instant)

2024-05-16 Thread Kurt Alfred Kluever
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

Re: In support of Instant.minus(Instant)

2024-05-02 Thread Kurt Alfred Kluever
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> &

In support of Instant.minus(Instant)

2024-04-25 Thread Kurt Alfred Kluever
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