I have a dejavu ... a similar proposal was rejected a while ago.

Can't remember its name but it was like:

```js
foo.{
  a.b = c;
  d();
}
```

how is this different, if it's actually any different?


On Mon, Nov 12, 2018 at 2:23 PM T.J. Crowder <
[email protected]> wrote:

> On Sat, Nov 10, 2018 at 5:49 PM Timothy Johnson
> <[email protected]> wrote:
>
> It's **great** to see a proposal backed by an example implementation. :-)
>
> I suggest adding some explanation to the proposal about how your example
> knows the `..d()` applies to `foo` and not to `c`. From the Dart
> documentation, I'd *guess* (not being a Dart person) that it's because
> you'd need parens around the `c..d()` to force it to apply to that instead,
> but... More about the specific mechanics of that as it applies to JS would
> be useful.
>
> Probably also worth a one-liner that you're aware of and have allowed for
> how this relates to numeric literals (e.g., `console.log(12..toString())`).
> I can see in your commit on the Babel fork that you have allowed for it,
> but for those who don't dig that deep...
>
> If this were in the language, I'd happily use it. I don't really feel the
> lack of it, though.
>
> -- T.J. Crowder
> _______________________________________________
> 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

Reply via email to