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

[compiler-v2][Feature Request] Index notation for tables #14829

Open
alnoki opened this issue Oct 1, 2024 · 1 comment
Open

[compiler-v2][Feature Request] Index notation for tables #14829

alnoki opened this issue Oct 1, 2024 · 1 comment
Labels
compiler-v2 enhancement New feature or request

Comments

@alnoki
Copy link
Contributor

alnoki commented Oct 1, 2024

@brmataptos @fEst1ck @georgemitenkov @rahxephon89 @runtian-zhou @vineethk @wrwg

Index notation is already available for vectors and for global resources, but not tables, which would analogously look something like:

  • &t[key] for borrow item in the table
  • &mut t[key].field for mutably borrow field of table item
  • etc.
@alnoki alnoki added the enhancement New feature or request label Oct 1, 2024
@wrwg
Copy link
Contributor

wrwg commented Oct 3, 2024

We want to look at this once we have trait Indexable or similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler-v2 enhancement New feature or request
Projects
Status: 📋 Backlog
Development

No branches or pull requests

3 participants