Hi.

I'm writing to see if there's anyone out there using RxJava [1] from
Clojure and to get their opinion on it's current, built-in support for
non-Java languages.

Just to recap, the current implementation knows about clojure.lang.IFn
allowing functions to be passed directly to RxJava methods:

  (-> my-observable
    (.map (fn [v] (Long/parseLong v)))
    (.reduce +))

RxJava will automatically convert these functions to the underlying
rx.util.functions.FuncX interface and re-dispatch to the appropriate method.

So, the question is: as a user of RxJava, how valuable is this feature? Do
you just end up wrapping things anyway, so you could easily perform the
same transformation in your wrapper? Would helper fns/macros be a
sufficient alternative:

  (-> my-observable
    (.map (rx/fn [v] (Long/parseLong v)))
    (.reduce (rx/fn* +)))

There will be some changes in this area in the near future and we'd like to
get a feel for if/how people are using RxJava from Clojure.

Thanks!

Dave

[1] https://github.com/Netflix/RxJava

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to