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

either.js missing #5

Open
syzer opened this issue Aug 7, 2014 · 5 comments
Open

either.js missing #5

syzer opened this issue Aug 7, 2014 · 5 comments

Comments

@syzer
Copy link

syzer commented Aug 7, 2014

Can you add either to instances?
you have it in
patterns_talk

BTW: +1 for pointfree

@DrBoolean
Copy link
Owner

I shall. In the meantime, I've been using folktale's data.either. I dig it very much.

For the most up-to-date stuff checkout:
https://github.com/DrBoolean/hardcorejs/blob/master/demos/step4/flickr.js
which uses:
http://looprecur.com/hostedjs/v2/hcjs.js

@DrBoolean
Copy link
Owner

Should mention, we just threw things in there to reduce complexity for the class. But it's got most of what we use in client work as deps

@syzer
Copy link
Author

syzer commented Aug 7, 2014

https://github.com/DrBoolean/hardcorejs/blob/master/demos/step4/flickr.js
ramda is still to hardcore for me :)
why not wu?

one comment on style:
var _PictureBox ...

instead privates with _
AKA the blind-man oath: "I pretend not to see and call code with _"

one might return object/function wich exposes wanted api
and push all _functions
to closure , so they are really private

@DrBoolean
Copy link
Owner

ha nice. ramda and lambdajs expose a really nice curried api for doing pointfree stuff. Alternatively, lodash's chain and standard fantasyland api's turn into a scala-like approach.

I tend to gravitate toward pointfree, but i'm crazy like that.

The _ convention is totally lame. I typically do hide it and just expose the constructor, but in the class we used that convention throughout to flag the type vs the constructor so we could avoid using new while practicing implementing the typeclass interfaces.

@syzer
Copy link
Author

syzer commented Aug 7, 2014

+1

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