Re: [EXTERNAL] Re: Destructuring by

2021-03-04 Thread Andrea Giammarchi
in PHP &$ref means by reference ... and in C is about the address ... I understand your proposal, but I see few gotchas in it: ```js let { x: ref x } = obj; ``` my proposal is: ```js let {} = obj; ``` less typing, less eyes crawling, it's about describing the intent to change, or address,

RE: [EXTERNAL] Re: Destructuring by

2021-03-04 Thread Ron Buckton
This was mentioned up-thread, but I wrote up this proposal several years ago (https://github.com/rbuckton/proposal-refs) and am still considering bringing it to committee at some point. However, there are a larger set of cross-cutting concerns for refs in the context of a proposal like

Re: Destructuring by

2021-03-04 Thread Andrea Giammarchi
> How will you prevent the passing of the object down the pipe? ```js const downThePipe = ({}) => { // you can read source source; // you can set source source = 'blah'; // you can't know where source comes from // but you could propagate that reference further evenFurtherDown({,