News for hackers. Stuff that matters.
Re:Clojure to die for by nardi on Tuesday March 11, 2014 @05:14AM (#7378158)
In which the author gets really excited about idioms in Clojure that don't seem that exciting.
Re:Clojure to die for by thom on Tuesday March 11, 2014 @07:58AM (#7378690)
I think the article is overly focused on small, pragmatic syntax issues without explaining how the underlying language and runtime have _enabled_ them.

It might be interesting to discuss _why_ keywords or maps or sets can work as functions, by implementing the IFn interface. Perhaps explain why homoiconicity and macros enable things like thread-first and -last, and talk about how we can implement our own reader literals.

Re:Clojure to die for by cjohansen on Tuesday March 11, 2014 @09:47AM (#7379133)
> I think the article is overly focused on small, pragmatic syntax issues without explaining how the underlying language and runtime have _enabled_ them.

That was kinda the whole point of the post.

Re:Clojure to die for by jimbokun on Tuesday March 11, 2014 @08:41AM (#7378860)
Sounds like you have a nice topic there for your next blog post.
Re:Clojure to die for by Ygg2 on Tuesday March 11, 2014 @06:22AM (#7378375)
Agreed. This did nothing to make me really excited about Clojure or Lisp. A demonstration of differential was a better example than this.
Re:Clojure to die for by cjohansen on Tuesday March 11, 2014 @07:54AM (#7378674)
It's not really intended as an "evangelist" post. It's just describing some details that makes a big difference to me in my day-to-day work. I guess it's more of a "hey, fellow Clojure programmer, don't you agree that these details really put the icing on the cake?" kind of post.

Maybe the other post I posted the same day would give newcomers a better impression of what using Clojure is like in practice (lots more code, more in-depth): http://cjohansen.no/building-static-sites-in-clojure-with-st...

Re:Clojure to die for by agumonkey on Tuesday March 11, 2014 @09:37AM (#7379091)
The 'to die for' is too strong.

ps: what is the min* function ? can't find anything on google

Re:Clojure to die for by cjohansen on Tuesday March 11, 2014 @09:51AM (#7379157)
It's an expression of enthusiasm, don't take it so seriously.

min* is like min but takes a list, it's not built in. Yes, I know about apply, I still prefer min* to (apply min) in certain cases.

Re:Clojure to die for by agumonkey on Tuesday March 11, 2014 @10:03AM (#7379222)
Thanks, I was just affraid I'd missed some kind of builtin macro or convention. At one point I thought that -> would rewrite function #"\*$" to decorate them with apply ... paranoid noobies you know.

ps: you're a very enthusiastic person ;)

Re:Clojure to die for by wging on Tuesday March 11, 2014 @11:15AM (#7379685)
One thing that will help a lot: type (source f) to see the source code for a function or macro. Also (doc f) for documentation.
Re:Clojure to die for by jnazario on Tuesday March 11, 2014 @02:04PM (#7380983)
thanks for writing it. i have yet to grok or embrace Lisp-family languages, but your post was still fun to read.