Binary operator assignment shorthand #5

Open
opened 2022-03-04 03:15:29 +00:00 by mars · 0 comments
Owner
let mut x = 10;
x += 5;
x ^= 0b10;

or

let mut f = 0.1;
f *= 10.0;
f /= 3;

support any binary operator

check example TODOs for replacements

``` let mut x = 10; x += 5; x ^= 0b10; ``` or ``` let mut f = 0.1; f *= 10.0; f /= 3; ``` support any binary operator check example TODOs for replacements
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mars/sprite-rs#5
No description provided.