-
Notifications
You must be signed in to change notification settings - Fork 102
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
Convert tryCatch to nAry (#318) #320
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This 👀 GTG!
As we are changing the interface for this, thinking it should be marked as a Breaking Change.
We are going to do a 0.10.2
release with some features and a bug fix, then this should go out with 0.11.0
which will be the release after this next one.
What do you think about updating the documentation to make note of this new super power?
Sure, I'll get that in today.
…On Sun, Oct 7, 2018, 8:35 AM Ian Hofmann-Hicks ***@***.***> wrote:
***@***.**** approved this pull request.
This 👀 GTG!
As we are changing the interface for this, thinking it should be marked as
a Breaking Change.
We are going to do a 0.10.2 release with some features and a bug fix,
then this should go out with 0.11.0 which will be the release after this
next one.
What do you think about updating the documentation to make note of this
new super power?
[image: image]
<https://user-images.githubusercontent.com/3665793/46579132-70501380-c9c0-11e8-91a2-8bc085cd3c4e.png>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#320 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AH4KbxK29XcKPP_FmmEmokDkHK8hcoLTks5uiaCYgaJpZM4XJ3pf>
.
|
const noncurried = tryCatch(x, 1,2,3).either(identity, identity) | ||
const curried = tryCatch(x, 1)(2)(3).either(identity, identity) | ||
|
||
t.equals(equals(noncurried, { a: 1, b: 2, c: 3 }), true, 'preserves the arity of the passed function') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of equals with an equals function checking for true, tape provides same
.
But this is okay, I have done this a lot myself and it still is a vaild test
No description provided.