[ClojureScript] PowerCursors! ;)

2015-05-05 Thread Marc Fawzi
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? Powe

[ClojureScript] Re: Mori + atom to complement React Native?

2015-05-05 Thread Oliver George
(I might well be wrong about Mori not providing atom. I see in project.clj that the entire cljs.core namespace seems to get included. Additionally it uses the new modules feature already so adding an optional module is entirely possible without overhead.) On Wed, May 6, 2015 at 9:07 AM, Oliver G

[ClojureScript] Mori + atom to complement React Native?

2015-05-05 Thread Oliver George
I was hoping to get a little feedback on an approach to iOS app development (today). I would advantage of David & Mikes efforts (+ the associated GSoC) but it feels a bit too soon so I'm wondering how to future proof but still deliver a product in the next few months. One idea is to do a javascri

Re: [ClojureScript] :foreign-lib differences between :none and :advanced

2015-05-05 Thread Jamie Orchard-Hays
Thanks, David. Somewhere along the line my knowledge and understanding of :foreign-libs and :externs was confused or incomplete. I went back and reviewed the docs. Cheers, Jamie On May 5, 2015, at 12:42 PM, David Nolen wrote: > This has nothing to do with :foreign-libs. You must supply ext

Re: [ClojureScript] :foreign-lib differences between :none and :advanced

2015-05-05 Thread David Nolen
This has nothing to do with :foreign-libs. You must supply externs for non-Closure libraries. David On Tue, May 5, 2015 at 12:29 PM, Jamie Orchard-Hays wrote: > Been chasing a bug this morning which turned out to revolve around using > Big.js for BigDecs in my re-frame app. > > Big.js has a syn

[ClojureScript] :foreign-lib differences between :none and :advanced

2015-05-05 Thread Jamie Orchard-Hays
Been chasing a bug this morning which turned out to revolve around using Big.js for BigDecs in my re-frame app. Big.js has a synonym for add()--plus()--which worked fine in my dev compilation mode of :none. For production compilation with :advanced, my reduce function was blowing up. Here's h

Re: [ClojureScript] cljs compiler options :closure-defines {:goog.DEBUG false}

2015-05-05 Thread David Nolen
It works for ClojureScript originated Closure Defines, not Google Closure originated ones. Happy to take a patch that solves the general case. David On Tue, May 5, 2015 at 10:47 AM, Thomas Heller wrote: > http://dev.clojure.org/jira/browse/CLJS-1014 > makes me think that defines should work in

Re: [ClojureScript] cljs compiler options :closure-defines {:goog.DEBUG false}

2015-05-05 Thread Thomas Heller
http://dev.clojure.org/jira/browse/CLJS-1014 makes me think that defines should work in :none, not sure why they don't. If you want to use Closure defines in :none while developing you can put them into your HTML manually before including the javascript (or use shadow-build). For standard CLJS j

Re: [ClojureScript] cljs compiler options :closure-defines {:goog.DEBUG false}

2015-05-05 Thread Jamie Orchard-Hays
Thanks for elucidation. In my particular case, I was just trying to test that I was using goog.DEBUG correctly from project.clj but in a dev mode which has :none for optimizations. I missed docs that :closure-defines doesn't work in that mode. I've updated the wiki page to the effect that :clo

Re: [ClojureScript] cljs compiler options :closure-defines {:goog.DEBUG false}

2015-05-05 Thread Mike Thompson
On Tuesday, May 5, 2015 at 11:02:15 AM UTC+10, Jamie Orchard-Hays wrote: > WRT wiki: looking at this commit, it looks like a keyword works: > > > https://github.com/clojure/clojurescript/commit/cb7e97f13ae6a03086f5d96ba58e5f3d5cba7dc3 > > > (name key) > > > > > Jamie > > > On May 4, 2015,