So after a couple of months drooling over ClojureScript's more advanced
facilities, I've finally managed to play with Protocols and Records.

It feels a bit OO-ish me, but can't see how I could survive without it....

Is this really functional programming or did I subconsciously revert to OO?

PowerCursors >>>

https://gist.github.com/idibidiart/0090a95b6b4f9c12c070


The previous version was a weaker abstraction which used multi-methods (
https://gist.github.com/idibidiart/2b3aa1594ce707227b96) and is very
amateur in retrospect so I'm hoping the next version will be that much
better...

This one doesn't even

If you have any feedback for this n00b please don't hesitate to share here.

Btw, all of this digging and exploring because of one comment at our last
SF Reagent meetup that cursors were just simple pointers. The latest
abstraction doesn't even use any cursor per se but invents it's own simple
yet more robust lensing pattern.

Thank you for all your help answering my often ridiculous questions.

Marc
p.s. the last meetup's video IS coming this Thursday, and it will put all
of this "Cursors can do it all, depending on how you define them"  in
context..

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to