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

[Feature Request][compiler-v2] Overload compound operator to apply to aggregators #15074

Open
1 task
alnoki opened this issue Oct 24, 2024 · 0 comments
Open
1 task
Labels
enhancement New feature or request stale-exempt Prevents issues from being automatically marked and closed as stale

Comments

@alnoki
Copy link
Contributor

alnoki commented Oct 24, 2024

@georgemitenkov @wrwg

  • Allow aggregator::add(my_agg, amount) to be represented as my_agg += amount

Note per @wrwg in Move Interest Group Telegram chat:

We like to wait with this until we have traits, which are currently in development. With traits we'd have trait AssignAdd { fun assign_add(self: &mut Self, other: &Self) } which can be defined to enable += for aggregators and other types.

@alnoki alnoki added the enhancement New feature or request label Oct 24, 2024
@brmataptos brmataptos added the stale-exempt Prevents issues from being automatically marked and closed as stale label Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale-exempt Prevents issues from being automatically marked and closed as stale
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants