On Mar 1, 9:55 am, Richard Newman <holyg...@gmail.com> wrote:

>    (defn house-sale-profit
>      [house-sales-price house-sale-expenses]
>      (- house-sales-price house-sale-expenses))

I'd like to note that if you do this, you might just as well use the -
function directly. It's not as flexible if the profit calculation
changes, but until there's a real need, it just feels like
overabstraction.
  (let [profit (- house-sales-price house-sale-expenses)]
     ...)
is perfectly reasonable. The same applies to calculating months-in-
business.

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