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

Suggestion for 3184 -- decrement first #3224

Merged
merged 2 commits into from
Jun 3, 2021

Conversation

erights
Copy link
Member

@erights erights commented Jun 1, 2021

Where the increment was nested inside the decrement in #3184, swap them.

For cases like this, I think it is more intuitive to put the decrement on the inside. It fits with our physical conservation intuitions: The amounts in the decrement's return value are the amounts extracted from the decremented seat's allocation. That amount in turn is used to increment the allocation of the outer seat.

@erights
Copy link
Member Author

erights commented Jun 1, 2021

See #3184 (comment)

@erights erights requested a review from katelynsills June 1, 2021 03:14
Copy link
Contributor

@katelynsills katelynsills left a comment

Choose a reason for hiding this comment

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

Sounds good to me!

@katelynsills katelynsills merged commit f228927 into 3064-new-reallocate-api Jun 3, 2021
@katelynsills katelynsills deleted the suggestions-for-3184 branch June 3, 2021 23:55
katelynsills pushed a commit that referenced this pull request Jun 4, 2021
* fix: regexp magic

* fix: lint
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.

2 participants