Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New motivation #296

Open
lilnasy opened this issue May 19, 2023 · 6 comments
Open

New motivation #296

lilnasy opened this issue May 19, 2023 · 6 comments

Comments

@lilnasy
Copy link

lilnasy commented May 19, 2023

After an early implementation of it broke websites, the proposal for array grouping is switching from Array.prototype.group (instance method) to Array.group (static method). The sentiment expressed by implementers is that they don't want to keep extending prototypes, and hoping it doesn't break the web.

This signals that method chaining will become less and less viable over the next decade. It might be worth it to add this to the explainer as a motivation once grouping reaches stage 3 again.

@ivan-kleshnin

This comment was marked as off-topic.

@ljharb

This comment was marked as off-topic.

@ivan-kleshnin

This comment was marked as off-topic.

@ljharb

This comment was marked as off-topic.

@ivan-kleshnin

This comment was marked as off-topic.

@michaelschufi
Copy link

As I understand, the pipeline operator is also useful in scenarios where we have nesting instead of prototype chaining, as described here: https://github.com/tc39/proposal-pipeline-operator?tab=readme-ov-file#pipe-operators-combine-both-worlds
While prototype chaining might become less popular, this part of the proposal is still very relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants