Re: [ClojureScript] Multimethods -- problem with :default and multiple dispatch values

2015-10-01 Thread David Nolen
Questions and discussions like this which enhance the language should be directed to the clojure-dev mailing list. While there are a few exceptions, for the most part we only take enhancements that have already been incorporated into Clojure itself. David On Thu, Oct 1, 2015 at 5:19 AM, Tom

[ClojureScript] Re: Multimethods -- problem with :default and multiple dispatch values

2015-10-01 Thread Tom Locke
Replying to myself : ) My "good enough" solution, in case it's of use to others, is (defn set-hierarchy-root! [x root] (if-let [p (-> x parents first)] (set-hierarchy-root! p root) (derive x root))) (defn with-root [x root] (when-not (isa? x root) (set-hierarchy-root! x root))

[ClojureScript] [ANN] ClojureScript React Native: cljsrn.org

2015-10-01 Thread Mike Fikes
A new site aggregating info on how to use ClojureScript with React Native: http://cljsrn.org -- 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

Re: [ClojureScript] [ANN] ClojureScript React Native: cljsrn.org

2015-10-01 Thread Marc Fawzi
Hi Mike, Thank you for going all the way to make it easy for Clojurists to get going with React Native. I've been using React Native via JS with some niceties like ES7 decorators ES6 classes and looking forward to using Redux. I've also been curious about React Native's recent support for ES7

Re: [ClojureScript] [ANN] ClojureScript React Native: cljsrn.org

2015-10-01 Thread Pete Doherty
This is great, Mike - thanks! Are there any plans to set up an RSS/Twitter feed? (I'd be happy to pitch in if you need any help.) On Thu, Oct 1, 2015 at 11:57 AM, Mike Fikes wrote: > A new site aggregating info on how to use ClojureScript with React Native: >

Re: [ClojureScript] [ANN] ClojureScript React Native: cljsrn.org

2015-10-01 Thread Marc Fawzi
I guess I'm asking if anyone knows of a super thin React Wrapper that would allow me to use ClojureScript and hiccup syntax with React Native without yet another black box like Reagent. I think there must be one or two such super thin wrappers but not sure if anyone has had any success using

Re: [ClojureScript] [ANN] ClojureScript React Native: cljsrn.org

2015-10-01 Thread Jamie Orchard-Hays
Maybe brutha? https://github.com/weavejester/brutha Or quiescent? https://github.com/levand/quiescent Jamie > On Oct 1, 2015, at 6:31 PM, Marc Fawzi wrote: > > I guess I'm asking if anyone

Re: [ClojureScript] [ANN] ClojureScript React Native: cljsrn.org

2015-10-01 Thread Mike Fikes
Hi Pete, Yeah, I was thinking that if new things keep coming out, and I keep updating that site, it might be nice to have a feed of some sort. Will think about it, especially if activity ramps up. - Mike > On Oct 1, 2015, at 12:06 PM, Pete Doherty wrote: > > This is

Re: [ClojureScript] [ANN] ClojureScript React Native: cljsrn.org

2015-10-01 Thread Mike Fikes
Marc, You can definitely use React directly from ClojureScript without a layer like Om or Reagent. (I don’t have any experience with doing that.) - Mike > On Oct 1, 2015, at 12:34 PM, Marc Fawzi wrote: > > Hi Mike, > > Thank you for going all the way to make it easy

[ClojureScript] Multimethods -- problem with :default and multiple dispatch values

2015-10-01 Thread Tom Locke
One of the benefits of Clojure(Script)'s multimethods over traditional OO polymorphism is that you can dispatch on multiple values. For example, we can dispatch on the types of all the arguments, instead of just the first one: (defmulti example (fn [x y] [(type x) (type y)])) My question is