Well, leaking `this` from a ctor in a regular class isn't so great either, but yes, the only sensible use of `this` in a value ctor is to qualify a DU field.

On 5/18/2018 4:07 PM, Remi Forax wrote:
It's more code like a class and don't leak 'this' as Ali and Maurizio said.

Rémi

----- Mail original -----
De: "Brian Goetz" <brian.go...@oracle.com>
À: "John Rose" <john.r.r...@oracle.com>, "Maurizio Cimadamore" 
<maurizio.cimadam...@oracle.com>
Cc: "valhalla-spec-experts" <valhalla-spec-experts@openjdk.java.net>
Envoyé: Vendredi 18 Mai 2018 22:05:15
Objet: Re: Towards Minimal L World
Thesis:  Value constructors are the same notation as VBC constructors.
+1.  I don't think its a good use of our "user model complexity budget"
to have a different way to write these guys.  It also facilitates
migration.  And "Codes like a class" has a pretty sensible answer for
"how do I write a constructor."

Reply via email to