What is the advantage of specify over extend-type like this: https://gist.github.com/viebel/8461313
On Monday, 20 October 2014 18:00:11 UTC+3, Gary Trakhman wrote: > This is the only example I have that uses specify at the moment, but it's > treating a JS object as a map: > https://gist.github.com/gtrak/f159d1e0c3339cad5259#file-request-cljs-L48 > > > That particular use-case could be accomplished with reify, but the important > difference is that it's the same object, you can pass it around without > wrapping it in something else and still use all the standard JS methods on it. > > > On Mon, Oct 20, 2014 at 10:50 AM, Yehonathan Sharvit <[email protected]> wrote: > > > Could you give an example, please? > > > — > Sent from Mailbox > > > > > > > > On Mon, Oct 20, 2014 at 5:49 PM, Gary Trakhman <[email protected]> wrote: > > > > > It's helpful in the sense that you can wrap standard arrays and JS objects to > work with CLJS protocols without globally affecting your whole app. That may > or may not be 'easier', but it's potentially simpler. > > > > > On Mon, Oct 20, 2014 at 10:47 AM, Yehonathan Sharvit <[email protected]> wrote: > Could you please elaborate about how 'specify' is helpful in the angular + > cljs context? > > > On Sunday, 19 October 2014 23:50:10 UTC+3, Gary Trakhman wrote: > > > Now cljs supports 'specify' so it'll be a bit easier to work with angular > > than when Kevin wrote his original blog post. > > > > > > > > > http://dev.clojure.org/jira/browse/CLJS-414 > > > > > > > > > > > > I tried to build something with CLJS/Angular before Om was a thing, and I > > found it hard to keep track of what kind of data I was passing around, and > > to reconcile immutable ops with mutable JS data structures. > > > > > > > > > No longer worth it, imo. > > > > > > > > > Haven't tried gyr. > > > > > > > > On Sun, Oct 19, 2014 at 1:10 PM, Kevin Lynagh <[email protected]> wrote: > > > On Sunday, October 19, 2014 2:28:52 AM UTC-7, Yehonathan Sharvit wrote: > > > > > > > Hello, > > > > > > > > > > > > > > I am pushing very strong clojurescript in my company. > > > > > > > Currently we use cljs + angular. > > > > > > > > > > > > > > I am curious to know how many people use this stack and do you have any > > > recommendation? > > > > > > > > > > > > > > > > > > > > > Thanks. > > > > > > > > > > > > My company has worked on several projects using cljs + Angular. > > > > > > I wrote a blog post last year outlining some of it: > > > > > > > > > > > > http://keminglabs.com/blog/angular-cljs-weather-app/ > > > > > > > > > > > > The decision was a pragmatic one at the time, but in the most few months > > we've been doing new work using React/Om, which feels much nicer to use > > from ClojureScript than Angular does. > > > > > > > > > > > > I recall in particular the cljs<->js datatype coercion got tricky in places > > and it was easy to trip over. > > > > > > > > > > > > > > > > > > -- > > > > > > 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. > > > -- > > 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. > > > > > > > > > > -- > > Note that posts from new members are moderated - please be patient with your > first post. > > --- > > You received this message because you are subscribed to a topic in the Google > Groups "ClojureScript" group. > > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/clojurescript/bHTskfjsyjA/unsubscribe. > > To unsubscribe from this group and all its topics, 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. > > > > > > > > > -- > > 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. -- 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.
