This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-06-08
Channels
- # admin-announcements (61)
- # beginners (42)
- # boot (16)
- # cider (3)
- # clojure (43)
- # clojure-brasil (6)
- # clojure-france (4)
- # clojure-germany (8)
- # clojure-japan (5)
- # clojure-nl (1)
- # clojure-russia (36)
- # clojure-sg (2)
- # clojurebridge (2)
- # clojurescript (129)
- # datomic (29)
- # editors (42)
- # euroclojure (8)
- # jobs (1)
- # ldnclj (44)
- # off-topic (9)
- # overtone (2)
- # reagent (1)
@andrevdm: I checked LFE is a bit older and has more github stars but Joxta is not far in following mainly since is much younger. What I like about joxta is that it shares a bit of the clojure syntax
This may help: http://blog.ericbmerritt.com/2012/02/21/differences-between-joxa-and-lfe.html
similarity with LISP-1 vs LISP-2 ? like syntax? isn't the main visual difference with LISP-2 just that you can use the same name for a function and a variable at the same time (different namespace) ?
@placeboza: yeah its not that big conceptually I dont think (e.g. see https://hornbeck.wordpress.com/2009/07/05/lisp-1-vs-lisp-2/) but I think it does make it feel a bit odd...
@placeboza: I'm going to tell the Haskell board that you just called them pedantic
that sounds to me that Haskell is theoretically solid but practically hard to learn or use. dunno at the end of the day code needs to get written and features shipped - 😄
although I must say that there is a cognicast episode http://blog.cognitect.com/cognicast/ that covers teaching - and they did an experiment teaching beginners Haskell - apparently is easy to learn if you start with it and don’t have your mind polluted with "Java OO” (as an example of one of the many)
I think its worth learning (most things are ). I think its easier once you know FP a bit an clojure is certainly great for that
I get the impression that learning Haskell will teach you the concepts well. I.e. instead of learning how inheritance works in your OO lang you learn the general concept of Type Classes (kinda)
I've been using F# and never understood all the fuss about it not supporting higher kinded-types. Right up till I found what I was really struggling with was that I needed lenses and that does not work (in general) because... higher kinded types
The syntax is odd but I think the concepts are solid. Now just need time for learning it and getting better at clojure too
btw, I was on a Haskell intro a while ago and was surprised by how few types I actually saw and had to relate to.
in cljs, i have a nested seq structure (actually, [:html [:head [:title …]]]
etc) and want to replace seqs that start with :gallery
with something else. is there a standard function that does this?
@sander One possibility is clojure.walk
. Then upon finding a sequence which starts with :gallery
, you replace the head.
@sander: Maybe not the cleanest version, but I guess something along these lines should do the job:
(->> [:foo
[:bar]
[:gallery 1 2]]
(postwalk (fn [form]
(if (and (sequential? form)
(= :gallery (first form)))
(->> (concat [:replacement] (next form))
(into (empty form)))
form))))
@sander: If performance matters you might check out this comment: https://github.com/reagent-project/reagent/issues/14#issuecomment-34302638
@dnolen: Thanks for helping transducers-js exist -- I just started playing with JS Maps, Sets, etc, and they're a bear to work with without map/filter/reduce/etc.
@teslanick: Clojure/Cognitect gets all the credit for that. I just ported the Clojure stuff.