Typed variants of primitives

Stephen Colebourne scolebourne at joda.org
Wed Dec 2 08:53:41 UTC 2020

On Wed, 2 Dec 2020 at 08:07, John Rose <john.r.rose at oracle.com> wrote:
> Did I miss anything?

I don't think so, it all looks possible though no doubt very long
term. The only point I'd note is that Year.default is not a valid
year, thus more akin to null, but nulls are a whole other topic.

I asked because a question was raised to me as to whether we should
add method overloads pre-valhalla to certain APIs in java.time.*.
  current: LocalDate.of(int, int, int)
  current: LocalDate.of(int, Month, int)
  add overload in Java 17?: LocalDate.of(Year, Month, int)

I think you'd suggest not to do that, but just want to be sure.


More information about the valhalla-dev mailing list