Really nice. Thanks, Stephen! Could the *print-level* cutoff
indicator be something more visible than '#'? Maybe '#=(...)' or
something.
I've attached a patch to add *print-str-length* that does the same
thing for strings:
user=> (set! *print-str-length* 30)
30
user=> (slurp "bigfile.xml")
"<?xml version=\"1.0\" encoding=\"..."
user=> (count *1)
2540
I feel like these variables should be named '*pr-level*' and so on,
since they affect 'pr' and 'pr-str' but not 'print'.
-Stuart Sierra
Okay, NOW I've attached a patch.
-Stuart
On Oct 24, 2:55 am, "Stephen C. Gilardi" <squee...@mac.com> wrote:I've uploaded a patch that implements Common Lisp's *print-length* and*print-level* for Clojure:
Really nice. Thanks, Stephen!
Could the *print-level* cutoff
indicator be something more visible than '#'? Maybe '#=(...)' or
something.
I've attached a patch to add *print-str-length* that does the same
thing for strings:
user=> (set! *print-str-length* 30)
30
user=> (slurp "bigfile.xml")
"<?xml version=\"1.0\" encoding=\"..."
user=> (count *1)
2540
I feel like these variables should be named '*pr-level*' and so on,
since they affect 'pr' and 'pr-str' but not 'print'.