On Oct 24, 2:55 am, "Stephen C. Gilardi" <[EMAIL PROTECTED]> 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'.

-Stuart Sierra

--~--~---------~--~----~------------~-------~--~----~
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
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