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

Valid Number #235

Closed
Undistraction opened this issue Dec 8, 2017 · 12 comments
Closed

Valid Number #235

Undistraction opened this issue Dec 8, 2017 · 12 comments
Assignees
Labels
Milestone

Comments

@Undistraction
Copy link
Collaborator

Would you accept a PR for a Sanctary-style isValidNumber()?

Effectively:

const isValidNumber = both(isNumber, complement(isNaN));
@char0n
Copy link
Owner

char0n commented Dec 8, 2017

We would, but need to understand first the usecases.

I can imagive having isValidNumber in the following form

const isValidNumber = R.either(RA.isFloat, RA.isInteger);

In ramda-adjunct we already have isFloat and isInteger. I would expect ValidNumber to be something that is not NaN and also not an Infinite number (+/-Infinity)

@Undistraction
Copy link
Collaborator Author

Undistraction commented Dec 8, 2017

I would expect ValidNumber to be something that is not NaN and also not an Infinite number (+/-Infinity)

That's a fair point. I agree.

@char0n
Copy link
Owner

char0n commented Dec 8, 2017

@Undistraction go for a PR then.

@BjornMelgaard opinion ?

@srghma
Copy link
Collaborator

srghma commented Dec 8, 2017

no

@Undistraction
Copy link
Collaborator Author

no

So is that a no to a PR?

@srghma
Copy link
Collaborator

srghma commented Dec 9, 2017

@Undistraction sorry, I meant I have no comments)
Please do it)

@Undistraction
Copy link
Collaborator Author

@BjornMelgaard OK. Thanks. I'll go ahead.

@char0n char0n added this to the v2.2.0 milestone Dec 9, 2017
Undistraction added a commit to Undistraction/ramda-adjunct that referenced this issue Dec 20, 2017
@char0n char0n closed this as completed in d94c1b5 Dec 22, 2017
@char0n
Copy link
Owner

char0n commented Dec 22, 2017

@Undistraction, @BjornMelgaard going for 2.2.0 release after the CI finishes the build for the last commit of this repo. I would specially like to thank @Undistraction for his contributions for this release.

@Undistraction
Copy link
Collaborator Author

@charon Thanks. Was a pleasure. You run a pleasingly tight ship!

@char0n
Copy link
Owner

char0n commented Dec 24, 2017

@Undistraction thanks good to hear that ;] After you finish #234 and you'll still interesting in contributing further you can become commiter/contributor of this project.

@Undistraction
Copy link
Collaborator Author

Thanks. That would be grand.

@char0n
Copy link
Owner

char0n commented Dec 24, 2017

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

No branches or pull requests

3 participants