On Tue, Mar 12, 2013 at 2:07 AM, Marko Topolnik
<marko.topol...@gmail.com> wrote:
> In Clojure 1.5 I would write

Yes, well, we'll be on 1.5.1 soon. Since this is heavily used
production code, we've been waiting for a gold release and for the
memory leak to get fixed before moving to 1.5.x :)

> (as-> response x (:body x) (:postalCodes x) (map to-location x) (sort-by
> :city x))

I like the new threading operators and I'm looking forward to using
them but I'm not sure this is better since you need some neutral
identifier that, in this expression, represents a map, a map, an array
and a sequence so the choice is either picking a good name for all of
those or something generic (most likely a punctuation symbol)...
Definitely YMMV.

I think cond-> / some-> will be more useful to us than as-> but we'll
see how it goes once we move up to 1.5.x.
-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

-- 
-- 
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