On Mon, 2008-09-08 at 13:15 -0700, Rich Hickey wrote: > Hmm, don't do that? > > Seriously, how is this a bug in Clojure, and not a bug in your > program, which resulted in an exception which easily leads you to your > problem?
Well, first of all this bug in a users program results in undefined behavior in the Clojure compiler which terminates due to a resource exhaustion without any particular error message. This should never happen. Then, please note that this somewhat contrived example, when extended to circular requires, e.g. A requires B and B requires A might accidentally (or by bad design) occur during development. One can argue whether this should result in an error message or whether the semantics of require are satisfied if the namespaces are loaded once each. But again, a StackOverflowError and a "don't do that" can not be the answer. My 2 Cents. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---