Skip to content
This repository has been archived by the owner on Mar 3, 2018. It is now read-only.

Don't use R.complement with when/unless #10

Open
c089 opened this issue Dec 31, 2015 · 1 comment
Open

Don't use R.complement with when/unless #10

c089 opened this issue Dec 31, 2015 · 1 comment

Comments

@c089
Copy link

c089 commented Dec 31, 2015

R.when(R.complement(p), f) === R.unless(p, f)
R.unless(R.complement(p), f) === R.when(p, f)
@lo1tuma
Copy link
Owner

lo1tuma commented Dec 31, 2015

We will cover that use-case with the no-confusing-complement rule (better name suggestions welcomed) which will deprecate the existing rule prefer-reject.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants