Hi,
On 9 Okt., 08:39, Krukow <[EMAIL PROTECTED]> wrote:
> (str x " loves " y))
>
> Now the question is why is it logging 5 times? Is this a bug, or has
> something fundamental changed? I checked out Clojure from SVN a few
> days ago.
Have a look at the implementation of str in boot.clj:
...
([x & ys]
(loop [sb (new StringBuilder #^String (str x)) more ys]
(if more
(recur (. sb (append (str (first more)))) (rest more))
(str sb))))
...
First logging to get there.
Second logging in the second line: (str x)
Third logging in 4th line: (str (first more)) ; (first more) == "
loves "
Fourth logging in 4th line: (str (first more)) ; (first more) == y
Fifth logging in 5th line: (str sb)
Sincerely
Meikel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---