tc39 / proposal-flatMap

proposal for flatten and flatMap on arrays
https://tc39.github.io/proposal-flatMap
214 stars 19 forks source link

Explore names other than `flat`/`smoosh` #73

Closed saschanaz closed 2 years ago

saschanaz commented 5 years ago

https://esdiscuss.org/notes/2018-09-26#arrayprototypeflat-map-for-stage-4 https://bugs.chromium.org/p/chromium/issues/detail?id=888128

Conclusion/Resolution

  • Not advancing due to potential webcompat issue brought up by Chrome team
  • Committee would prefer to explore naming options (not smoosh) over web compat hacks, if necessary

So it looks like the new name flat again caused a potential web compat problem.

A quick dictionary search shows some candidates:

bakkot commented 5 years ago

Per notes:

Chrome isn't planning on unshipping this just yet.

And it's been shipping to stable for a while now, which suggests .flat might well work out.

NilSet commented 5 years ago

Sidestep all naming issues and make it Array.prototype[Symbol.flatten]

hax commented 5 years ago

@bakkot I don't understand, it's obviously a webcompt issue

SGN: Chrome isn't planning on unshipping this just yet. There's no point in discussing this now.

MF: I think it's worth discussing this now. As the champion of this proposal, I'd like to at least hear where the strong opposition is.

SGN: I think it's important to inform the committee that there is a breakage and that we need to address that, but there's no point discussing the options now.

As my understanding, SGN said it's important to inform TC39 there is a webcompt issue, but don't want to discuss it in the meeting.


And it's been shipping to stable for a while now, which suggests .flat might well work out.

What should we expect ?? Anyone report breaking again due to using old versions of Highcharts? And if no such report we just believe there is no other site use old versions of Highcharts and broken ??

bakkot commented 5 years ago

@hax I haven't heard anything new from the Chrome team, and the linked issue hasn't had any updates. It's up to them to decide if it's enough of an issue that they want to unship it. You might want to follow up there.

hax commented 5 years ago

@bakkot So it only depend on Chrome team to decide what is real webcomp issue?

ljharb commented 5 years ago

@hax It depends on each individual browser - Chrome's just the first one to ship it. Chrome could decide to keep shipping it while another browser decides not to, or vice versa - but if Chrome decides it's able to keep shipping it, it's probably a good indicator that other browsers will be comfortable with the same decision.

ljharb commented 2 years ago

This proposal is stage 4, and the names are long since finalized as flat/flatMap.