Hi,
  I realize that at some level, "str" is just calling toString so the
behaviour isn't really defined. I find the following surprising though
because "str" doesn't obviously involve "printing":

user=> (binding [*print-length* 1] (str '(1 2 3 4)))
"(1 ...)"

This is because ASeq.toString delegates to RT.printString, which
eventually uses the print-method multimethod which honors
*print-length*.

Would it make sense for ASeq to unbind *print-length* in its toString
method? If so, it might require a new *str-length*.

If not, it would be nice for str to document this interaction.

-- Aaron

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to