On Jul 6, 6:07 pm, Benny Tsai <benny.t...@gmail.com> wrote:
> I believe (d) is considered the idiomatic way*.  Btw, I think the second
> case may not be written correctly; if the intended logic is that 9.75 should
> be returned when either amount > 20 or country = "US", the code should look
> something like this:
>
> (cond (= total 20) 8.75
>       (or (> amount 20) (= country "US")) 9.75
>       :else 10.0)
>
> *See:http://dev.clojure.org/display/design/Library+Coding+Standards

Benny, thanks for the reference.

-Conrad

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

Reply via email to