I believe it's for performance reasons. Strings in java are immutable,
so they use the StringBuilder(mutable) to achieve better performance.

On Jan 5, 12:18 am, John Szakmeister <[email protected]> wrote:
> I was looking at a commit that updated a docstring for str/join, which
> enticed me to take a look at the implementation.  I was kind of
> surprised to see that it wasn't:
>   (apply str (interpose sep coll))
>
> I'm just curious about the developer was thinking.  Here's a link to the code:
>   <https://github.com/clojure/clojure/blob/f30995c86056959abca53d0ca35dc...>
>
> Thanks!
>
> -John

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
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

Reply via email to