Re: Some clarifications about let form

2010-08-28 Thread HB
So, any time I want to declare a local variable (inside a function for example), I use let form. On Aug 26, 8:26 pm, nickikt nick...@gmail.com wrote: Its for defining look variables (constants) that you use more then once in your form and not have to write it more then once (or calculated it

Re: Some clarifications about let form

2010-08-28 Thread nickikt
yes, but you can not change it if you start a new (let ...). On 28 Aug., 16:22, HB hubaghd...@gmail.com wrote: So, any time I want to declare a local variable (inside a function for example), I use let form. On Aug 26, 8:26 pm, nickikt nick...@gmail.com wrote: Its for defining look

Some clarifications about let form

2010-08-26 Thread HB
Hey, Basically, I understand what let form does but I'm not sure when to use it. Would you please enlighten me about it? (if possible some typical Java code and then covert it to Clojure let form). I really appreciate your time and help. Thanks. -- You received this message because you are

Re: Some clarifications about let form

2010-08-26 Thread Meikel Brandmeyer
Hi, On 26 Aug., 17:02, HB hubaghd...@gmail.com wrote: Hey, Basically, I understand what let form does but I'm not sure when to use it. Would you please enlighten me about it? (if possible some typical Java code and then covert it to Clojure let form). I really appreciate your time and help.

Re: Some clarifications about let form

2010-08-26 Thread nickikt
Its for defining look variables (constants) that you use more then once in your form and not have to write it more then once (or calculated it more then once) (let [r1 (random-int) r2 (random-int)] (when (the-same? r1 r2) (str r1 and r2 are the same)) Write