On Thu, Mar 31, 2016 at 11:53 AM, James Reeves <ja...@booleanknot.com> wrote:
> On 31 March 2016 at 16:39, hiskennyness <kentil...@gmail.com> wrote: > >> In porting my modelling library Cells to Clojure I managed to get a stack >> overflow when the printer tried to print a recursive data structure* I have >> used in the Common Lisp version. >> >> * Basically, a ref holds a map in which some values are maps in which >> some values are the ref. >> >> In Lisp we have *print-depth* as well as *print-length* to deal with just >> this case. >> >> Is there some way I can deal with this, or are recursive data structures >> not really supported by Clojure? >> > > The same variables exist in Clojure: *print-level* and *print-length* > respectively. > Doh! You can tell how often I use them. But this is interesting: *print-level* at the top-level is nil, but the default *behavior* seems to be limited. Same with *print-length*. Perhaps the repl is helping out. Thx, kt > - James > > -- > 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 > --- > You received this message because you are subscribed to a topic in the > Google Groups "Clojure" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/clojure/TGtavJVzVWk/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Kenneth Tilton Founder/Developer TiltonTec 54 Isle of Venice Dr Fort Lauderdale, FL 33301 k...@tiltontec.com http://tiltontec.com @tiltonsalgebra 646-269-1077 "In a class by itself." *-Macworld* -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.