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

Create user-defined-compound-assignment.md #9068

Merged
merged 22 commits into from
Jan 27, 2025
Merged

Create user-defined-compound-assignment.md #9068

merged 22 commits into from
Jan 27, 2025

Conversation

AlekseyTs
Copy link
Contributor

No description provided.

@AlekseyTs AlekseyTs requested a review from a team as a code owner January 17, 2025 00:26
proposals/user-defined-compound-assignment.md Show resolved Hide resolved
proposals/user-defined-compound-assignment.md Show resolved Hide resolved

Therefore, it may be beneficial for C# to allow user types to
customize behavior of compound assignment operators and optimize scenarios that would otherwise need to allocate
and copy.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be beneficial to give some example code of a custom compound/increment operator here before diving to the detailed design.

proposals/user-defined-compound-assignment.md Show resolved Hide resolved
proposals/user-defined-compound-assignment.md Outdated Show resolved Hide resolved
proposals/user-defined-compound-assignment.md Outdated Show resolved Hide resolved
proposals/user-defined-compound-assignment.md Outdated Show resolved Hide resolved
proposals/user-defined-compound-assignment.md Show resolved Hide resolved
@AlekseyTs AlekseyTs merged commit e2f7a28 into main Jan 27, 2025
1 check passed
@AlekseyTs AlekseyTs deleted the AlekseyTs-patch-7 branch January 27, 2025 17:45
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

Successfully merging this pull request may close these issues.

3 participants