Skip to content

Implement nand - #952

Merged
char0n merged 2 commits into
char0n:masterfrom
dawehner:issue-237
Jun 12, 2019
Merged

Implement nand#952
char0n merged 2 commits into
char0n:masterfrom
dawehner:issue-237

Conversation

@dawehner

@dawehner dawehner commented Jun 9, 2019

Copy link
Copy Markdown
Contributor

Tries to solve #237

Note: While committing it, eslint-plugin-ramda had a bug, see ramda/eslint-plugin-ramda#26, so I disabled this specific eslint rule in the configuration. Maybe I'm missing something.

@dawehner dawehner changed the title Imeplement nand Implement nand Jun 9, 2019
@dawehner dawehner mentioned this pull request Jun 9, 2019
Comment thread .eslintrc Outdated
Comment thread src/index.d.ts Outdated
Comment thread src/nand.js Outdated
Comment thread src/nand.js Outdated
Comment thread src/nand.js Outdated
Comment thread test/nand.js Outdated
@dawehner
dawehner force-pushed the issue-237 branch 2 times, most recently from cb90bd4 to 9ab183c Compare June 10, 2019 06:21
@dawehner

Copy link
Copy Markdown
Contributor Author

I hopefully addressed all your feedback now! Thank you for the super quick response

Comment thread src/index.d.ts Outdated
neither(firstPredicate: Function, secondPredicate: Function): Function;

/**
* Returns `true` if both arguments are falsy, otherwise `false`.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

This description is not sync with description in nand.js

Comment thread test/nand.js Outdated
});

it('should support currying', function() {
const trueNand = nand(true);

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Pls import RA in following way import * as RA from '../src';

can we simplify into ?

it('should support currying', function() {
  eq(RA.nand(true, true), false);
  eq(RA.nand(true)(true), false);   
});

@char0n char0n left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I've provided last to comments, after processing them we're good to merge. Sorry for a lot of comments, but we're trying to maintain consistency and quality of the codebase very hard ;]

@dawehner

Copy link
Copy Markdown
Contributor Author

No worries, I totally hear you about opensource projects. Keeping things consistent can be really hard.

@dawehner

Copy link
Copy Markdown
Contributor Author

I've pushed up a change which hopefully addresses all your feedback. I hope rebasing the PRs is okay.

@char0n char0n left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Very nice! Let's wait for tests and it's ready for a merge. Thank you again.

@char0n
char0n merged commit 7931fa0 into char0n:master Jun 12, 2019
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