Fork me on GitHub
#cljs-dev
<
2016-10-07
>
dm309:10:24

btw, there's a bound-fn implementation for Clojurescript if anyone is interested - https://github.com/hoplon/hoplon/blob/responsive-layout-attributes-micha/src/hoplon/binding.clj

darwin12:10:50

here is my take to tackle the same goal: https://github.com/binaryage/cljs-zones

dm313:10:32

do you have something to handle the binding transparently? Without going through zone/get...

dnolen14:10:09

@dm3 we’re unlikely to ever implement bound-fn

dm315:10:01

is there a reason buried somewhere in CLJS Jira? 🙂

dm315:10:55

and it won't ever work properly with async code

dnolen15:10:01

@dm3 there’s lots of stuff in JIRA

dnolen15:10:57

in the end, there’s lot of implementation challenges, performance tradeoffs and minimal benefit

dnolen15:10:14

just capture the bindings you need in locals when you construct the fn and move on

dm315:10:24

makes sense. The two approaches above are completely fine for what I need