RFR:JDK-8198749 Translation of value constructors in classic constructor notation

John Rose john.r.rose at oracle.com
Thu Jul 12 03:17:08 UTC 2018

On Jul 11, 2018, at 6:08 PM, Brian Goetz <Brian.Goetz at Oracle.COM> wrote:
>> I think we will end up with some user-level syntax for referring to a VT's
>> default value by name.  Something like `` VT.default ``.  It would compile
>> directly to a defaultvalue instruction.  Perhaps via a tree that strongly
>> resembles a global constant reference in VT.  Hmm, nice how all that
>> hangs together…
> T.default is what we used in Model 3.  

Yeah; I think it's probably safe to add to current prototypes.
Not hard to change if we decide to do something else later.

More information about the valhalla-dev mailing list