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" <[email protected]>
À: "John Rose" <[email protected]>, "Maurizio Cimadamore"
<[email protected]>
Cc: "valhalla-spec-experts" <[email protected]>
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."