Re: Questions regarding do form

2012-09-27 Thread Wes Freeman
Thanks for mentioning doto--hadn't seen that before. Particularly, I think some of my unit tests can be made significantly more readable with that. Wes On Thu, Sep 27, 2012 at 11:40 AM, Russell Whitaker < russell.whita...@gmail.com> wrote: > On Thu, Sep 27, 2012 at 8:26 AM, arekanderu wrote: >

Re: Questions regarding do form

2012-09-27 Thread Grant Rettke
I'm reading _The Joy of Clojure_ right now, and they touch on it, which is nice coming from Scheme/Racket. On Thu, Sep 27, 2012 at 10:40 AM, Russell Whitaker wrote: > On Thu, Sep 27, 2012 at 8:26 AM, arekanderu wrote: >> Thank you Meikel for your so helpful replies. >> > > Thanks also from a lur

Re: Questions regarding do form

2012-09-27 Thread Russell Whitaker
On Thu, Sep 27, 2012 at 8:26 AM, arekanderu wrote: > Thank you Meikel for your so helpful replies. > Thanks also from a lurker, to whom these facts were a useful surprise: I'd wondered the same myself. Cheers, R > > On Thursday, September 27, 2012 4:19:44 PM UTC+3, Meikel Brandmeyer > (kotarak)

Re: Questions regarding do form

2012-09-27 Thread arekanderu
Thank you Meikel for your so helpful replies. On Thursday, September 27, 2012 4:19:44 PM UTC+3, Meikel Brandmeyer (kotarak) wrote: > > Hi, > > Am Donnerstag, 27. September 2012 12:16:41 UTC+2 schrieb arekanderu: > > I am new to clojure and I have two questions about do and the way it >> should b

Re: Questions regarding do form

2012-09-27 Thread Meikel Brandmeyer (kotarak)
Hi, Am Donnerstag, 27. September 2012 12:16:41 UTC+2 schrieb arekanderu: I am new to clojure and I have two questions about do and the way it should > be used. > > *Question 1: Which of the following two functions is more idiomatic and > why? Both functions produce the same result.* > > > (def

Questions regarding do form

2012-09-27 Thread arekanderu
Hello all, I am new to clojure and I have two questions about do and the way it should be used. *Question 1: Which of the following two functions is more idiomatic and why? Both functions produce the same result.* (defn my-fn [java-object] (. java-object firstFunc) (. java-object secondFu