Before long Clojure will have as much ugly, arcane syntax as Scala. (I say 
that mostly tongue in cheek, btw). For me, a lot of the attractiveness of 
Lisp languages is the minimal syntax that they have. I'm not a fan of 
adding more to Clojure than is already there. I'm just one voice and a very 
new one to Clojure, so I doubt my opinion will sway anyone else. I do love 
Clojure and hope to be able to use it more in the future, but I'll probably 
stick to the very basic syntax and forgo all this fancy sugar.

Dave

On Tuesday, March 12, 2013 4:07:19 AM UTC-5, Marko Topolnik wrote:
>
> On Monday, March 11, 2013 11:51:17 PM UTC+1, Sean Corfield wrote:
>
>> In addition to clj-time, I tend to use -> with date-clj as well: 
>>
>> (-> (today) 
>>     (subtract 30 :days)) 
>>
>> And I find something like this: 
>>
>>         (->> (-> response :body :postalCodes) 
>>              (map to-location) (sort-by :city)) 
>>
>> much easier to read than: 
>>
>>     (sort-by :city (map to-location (:postalCodes (:body response)))) 
>>
>
> In Clojure 1.5 I would write
>
> (as-> response x (:body x) (:postalCodes x) (map to-location x) (sort-by 
> :city x))
>
> or, perhaps
>
> (as-> response x (-> x :body :postalCodes) (->> x (map to-location) 
> (sort-by :city))
>
> I *love *as->* *!
>
> YMMV tho'... 
>>
>
> Ditto :)
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to