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

Predicate call site specific mutations #263

Closed
mbj opened this issue Oct 13, 2014 · 0 comments · Fixed by #1192
Closed

Predicate call site specific mutations #263

mbj opened this issue Oct 13, 2014 · 0 comments · Fixed by #1192

Comments

@mbj
Copy link
Owner

mbj commented Oct 13, 2014

Rubies convention of postfixing predicate methods with an ? should allow to add predicate call site specific mutations.

  • Replace call site with true (already included in other mutation operators)
  • Replace call site with false (currently not included, we emit nil already, an explicit false will cover more semantics`).
@backus backus changed the title Predicate call side specific mutations Predicate call site specific mutations Oct 10, 2016
dgollahon added a commit that referenced this issue Jan 2, 2021
- Adds mutations from predicate-like methods (methods ending in ?) to `true`/`false`
  * `a.b?` -> `false`
  * `a.b?` -> `true`
- Closes #263
dgollahon added a commit that referenced this issue Jan 2, 2021
- Adds mutations from predicate-like methods (methods ending in ?) to `true`/`false`
  * `a.b?` -> `false`
  * `a.b?` -> `true`
- Closes #263
dgollahon added a commit that referenced this issue Jan 2, 2021
- Adds mutations from predicate-like methods (methods ending in ?) to `true`/`false`
  * `a.b?` -> `false`
  * `a.b?` -> `true`
- Closes #263
dgollahon added a commit that referenced this issue Jan 2, 2021
- Adds mutations from predicate-like methods (methods ending in ?) to `true`/`false`
  * `a.b?` -> `false`
  * `a.b?` -> `true`
- Closes #263
dgollahon added a commit that referenced this issue Jan 2, 2021
- Adds mutations from predicate-like methods (methods ending in ?) to `true`/`false`
  * `a.b?` -> `false`
  * `a.b?` -> `true`
- Closes #263
dgollahon added a commit that referenced this issue Jan 2, 2021
- Adds mutations from predicate-like methods (methods ending in ?) to `true`/`false`
  * `a.b?` -> `false`
  * `a.b?` -> `true`
- Closes #263
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant