> On Oct 15, 2026, at 4:29 AM, Saurav Bhattarai <[email protected]> > wrote: > > I understand this is outside the scope of JEP 401 and may belong > with the planned work on conversions for value classes. I also > understand why Java has generally avoided implicit conversions. > > I would be interested to hear whether similar approaches have > been considered, which scope, if either, is closer to the Valhalla > team's thinking, and whether this idea is worth developing further.
Thanks for your thoughts. Yes, this is very much on our minds as we consider the next layer of features to come after value classes. Always hard to predict where those design discussions will land, but FWIW the general direction being considered right now is to enable user-defined declarations of pairs of convertible types (not all types, but perhaps a subset of value class types), and then support those conversions in assignments/invocations/casts/etc.
