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

Revisit support for :: operator #42856

Closed
5 tasks done
ackvf opened this issue Feb 18, 2021 · 3 comments
Closed
5 tasks done

Revisit support for :: operator #42856

ackvf opened this issue Feb 18, 2021 · 3 comments
Labels
Out of Scope This idea sits outside of the TypeScript language design constraints Suggestion An idea for TypeScript

Comments

@ackvf
Copy link

ackvf commented Feb 18, 2021

Suggestion for Extensions and :: operator

πŸ” Search Terms

Support proposed ES Next "::" bind operator #3508
bind operator
Extensions

βœ… Viability Checklist

My suggestion meets these guidelines:

  • This wouldn't be a breaking change in existing TypeScript/JavaScript code
  • This wouldn't change the runtime behavior of existing JavaScript code
  • This could be implemented without emitting different JS based on the types of the expressions
  • This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
  • This feature would agree with the rest of TypeScript's Design Goals.

⭐ Suggestion

I would like to revisit Support proposed ES Next "::" bind operator #3508

We'll revisit this if the proposal proceeds to stage 1.

Originally posted by @DanielRosenwasser in #3508 (comment)

There is a new iteration on the original bind operator proposal that has reached stage 1.

This is an ECMAScript (JavaScript) proposal in stage 1.

Note: The proposal could be seen as the new iteration of old bind operator proposal and I hope we could continue the further development in the original proposal repo if possible. See tc39/proposal-bind-operator#56 .

~ https://github.com/tc39/proposal-extensions

πŸ“ƒ Motivating Example and πŸ’» Use Cases

https://github.com/tc39/proposal-extensions

@ackvf ackvf changed the title Reopen support for :: operator Revisit support for :: operator Feb 18, 2021
@MartinJohns
Copy link
Contributor

MartinJohns commented Feb 18, 2021

I think nowadays the team follows the stance to wait for stage 3. Adding support for a feature that (at least currently) has no real outlook of being supported by JavaScript is risky.

@RyanCavanaugh RyanCavanaugh added Out of Scope This idea sits outside of the TypeScript language design constraints Suggestion An idea for TypeScript labels Feb 18, 2021
@RyanCavanaugh
Copy link
Member

What @MartinJohns said -- we don't add new runtime-observable syntax unless it's at Stage 3 in the process. We continue to monitor active proposals and provide feedback where needed to help move them along.

@ackvf
Copy link
Author

ackvf commented Feb 18, 2021

Alright! Get it. Too bad, I would love to see some syntactic sugar for binding.

@ackvf ackvf closed this as completed Feb 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Out of Scope This idea sits outside of the TypeScript language design constraints Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

3 participants