On Wed  2 Apr 2014 at 04:06:40AM -0700, Andy Smith wrote:

> If there is nothing better then I wonder why there isn't something
> like this in the clojure standard libraries (must be a good reason I
> suppose)? Its a fairly standard function for a string library isnt it?

It would be a terrible function for an immutable string library.
StringBuilder and StringBuffer are solid, fast, and working with them in
Clojure is painless.

> the first isnt pure clojure wo I would probably try to avoid this...
> e.g. what if I want to port to clojureCLR?

There are languages that attempt to be multiplatform (e.g. Haxe), but
Clojure is not one of them. Seamless interaction with the host platform
is an explicit goal.

This is an easy trade-off IMO; you give up the hypothetical freedom of
switching to entirely new OS/runtime in the future for access to more
features and better performance now.

    guns

Attachment: pgpQEvfXJVwDk.pgp
Description: PGP signature

Reply via email to