But then instead of (if (not (empty? foo)) (do-something-to foo) base-expr)
you could just write (if (empty? foo) base-expr (do-something-to foo)) which maintains the "idiomatic" approach but is still "more obvious code", yes? Sean On Sat, May 11, 2013 at 2:20 PM, Jonathan Fischer Friberg <[email protected]> wrote: > On Sat, May 11, 2013 at 9:25 PM, Alex Baranosky > <[email protected]> wrote: >> >> Most of the code I see and write at work at Runa uses (not (empty? foo)). >> I'll continue to defend the position that it is more obvious code, and >> therefore better (imo :) ) >> >> Alex > > > Completely agree. (seq foo) says "nothing", but (empty? foo) says exactly > what's going on. > > Jonathan > > -- > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to [email protected] > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > [email protected] > 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 [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > -- 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 [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
