Please no, mutable objects are bad enough imho. On Mon, Mar 19, 2018, 12:47 Sebastian Malton <[email protected]> wrote:
> Proposal: > Add a new variable-esk type called pointer which acts sort of like a > reference to the data which it has been assigned to but modifies also the > original reference when modified. > > Justification: > When working with objects in particular it is often useful for satiny > reasons to use local variables (mostly const's) as a shorthand reference > both for compactness and also so that you don't have to type out the entire > path every type. This would allow for non - objects but also overwriting > objects if wanted but still have this freedom and convenience. > > Method: > Add a new notation > > ``` > let:prt name = obj.field.name.fullname; > ``` > > Here if `name` is updated or if `obj.field.name.fullname` is updated so is > the other. > > Sebastian Malton > _______________________________________________ > es-discuss mailing list > [email protected] > https://mail.mozilla.org/listinfo/es-discuss >
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

