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

Add support of Item method (stage 3) #40695

Closed
5 tasks
Kingwl opened this issue Sep 22, 2020 · 8 comments
Closed
5 tasks

Add support of Item method (stage 3) #40695

Kingwl opened this issue Sep 22, 2020 · 8 comments
Assignees
Labels
ES Next New featurers for ECMAScript (a.k.a. ESNext) Fix Available A PR has been opened for this issue Rescheduled This issue was previously scheduled to an earlier milestone Suggestion An idea for TypeScript Waiting for TC39 Unactionable until TC39 reaches some conclusion

Comments

@Kingwl
Copy link
Contributor

Kingwl commented Sep 22, 2020

Search Terms

esnext, item method

Suggestion

https://github.com/tc39/proposal-item-method

Use Cases

Examples

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, etc.)
  • This feature would agree with the rest of TypeScript's Design Goals.
@Kingwl Kingwl changed the title Add support of Item method Add support of Item method (stage -3) Sep 22, 2020
@Kingwl Kingwl mentioned this issue Sep 22, 2020
@MartinJohns
Copy link
Contributor

Wow, it's already stage -3! ;-)

@RyanCavanaugh
Copy link
Member

Linked repo says stage 2, can you clarify?

@RyanCavanaugh RyanCavanaugh added the Needs Investigation This issue needs a team member to investigate its status. label Sep 22, 2020
@RyanCavanaugh RyanCavanaugh added this to the TypeScript 4.2.0 milestone Sep 22, 2020
@IllusionMH
Copy link
Contributor

Closest think I saw today: https://twitter.com/robpalmer2/status/1308292088484696066

@MartinJohns
Copy link
Contributor

Proposals overview lists it under stage 3: https://github.com/tc39/proposals

@DanielRosenwasser DanielRosenwasser added Suggestion An idea for TypeScript ES Next New featurers for ECMAScript (a.k.a. ESNext) labels Sep 22, 2020
@DanielRosenwasser DanielRosenwasser changed the title Add support of Item method (stage -3) Add support of Item method (stage 3) Sep 22, 2020
@typescript-bot typescript-bot added the Fix Available A PR has been opened for this issue label Oct 5, 2020
@lifaon74
Copy link

lifaon74 commented Dec 2, 2020

This item proposal changed to at recently: https://github.com/tc39/proposal-relative-indexing-method
It could be worth to wait for stage 4?

@rbuckton
Copy link
Member

rbuckton commented Dec 2, 2020

The name at is tentative. The current status is that the same investigation as to the viability of item needs to be performed for at or some other method name to ensure there are no web compatibility breaks with the name. This doesn't mean waiting for stage 4, but it does mean waiting for the champion and implementers to settle on an acceptable name that will not break web compatibility.

@rbuckton rbuckton added Waiting for TC39 Unactionable until TC39 reaches some conclusion and removed Needs Investigation This issue needs a team member to investigate its status. labels Dec 17, 2020
@RyanCavanaugh RyanCavanaugh added the Rescheduled This issue was previously scheduled to an earlier milestone label Mar 4, 2021
@rbuckton
Copy link
Member

rbuckton commented Jul 8, 2021

It looks like .at caused a web compatibility issue, but since that was in application code and not in a library/framework the champions were able to reach out to the engineering team for the web site that was broken and they were able to address the compatibility issue so that .at would be unblocked.

Since .at is shipping in v8 92 and SpiderMonkey 90, I think its fair to say that .at is the stable name for the feature.

@rbuckton
Copy link
Member

rbuckton commented Feb 1, 2022

It seems this was addressed in #46291

@rbuckton rbuckton closed this as completed Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ES Next New featurers for ECMAScript (a.k.a. ESNext) Fix Available A PR has been opened for this issue Rescheduled This issue was previously scheduled to an earlier milestone Suggestion An idea for TypeScript Waiting for TC39 Unactionable until TC39 reaches some conclusion
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants