Skip to content

Conversation

@nsajko
Copy link
Contributor

@nsajko nsajko commented Nov 26, 2023

This helps ensure the MutableArithmetics contract is respected. Specifically, MA.operate! should always return its first argument.

Why this instead of performing a stronger check with ===? Because:

  • That would be more verbose
  • The === would sooner have a run time cost than a type assertion

This helps ensure the MutableArithmetics contract is respected.
Specifically, `MA.operate!` should always return its first argument.

Why this instead of performing a stronger check with `===`? Because:

* That would be more verbose
* The `===` would sooner have a run time cost than a type assertion
@blegat
Copy link
Member

blegat commented Dec 4, 2023

Is this improving any benchmark or just some double checks ? In any case, please fix the format error and then it should bz good

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