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

Alias for Infinity #12

Closed
silverwind opened this issue Aug 20, 2018 · 3 comments
Closed

Alias for Infinity #12

silverwind opened this issue Aug 20, 2018 · 3 comments

Comments

@silverwind
Copy link

silverwind commented Aug 20, 2018

I happen to configure the concurrency option through JSON, but JSON cannot encode a Infinity value. Would you agree to taking 0 or -1 as an alias for Infinity?

@silverwind silverwind changed the title 0 as alias for Infinity Alias for Infinity Aug 20, 2018
@sindresorhus
Copy link
Owner

Why can't you transform it to -1 yourself?

@silverwind
Copy link
Author

Sure, I can do that. Just thought you might consider it.

The only mathematically correct value is of course Infinity.

@sindresorhus
Copy link
Owner

I'm going to pass on this. I don't like having multiple ways to solve the same thing.

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

No branches or pull requests

2 participants