Re: StackOverflowError caused by apply-template

2012-04-24 Thread Shogo Ohta
> I think that falls under the heading of "don't do that." :) I see. Actually, I found the error when I just used clojure.test, like this: (clojure.test/are [x y] (= (f x) y) 'x 'y) ;=> StackOverflowError I think it's not as much obvious as clojure.template's case. At that time, I didn't know

Re: StackOverflowError caused by apply-template

2012-04-22 Thread Stuart Sierra
I think that falls under the heading of "don't do that." :) clojure.template (which I wrote) wasn't a great idea to begin with. It was slightly useful in clojure.test, but I haven't found a use for it since. -S On Sunday, April 22, 2012 8:02:45 AM UTC-4, Shogo Ohta wrote: > > Hi, > > I've run

StackOverflowError caused by apply-template

2012-04-22 Thread Shogo Ohta
Hi, I've run into such an error: (clojure.template/apply-template '[x] 'x '[[x]]) ;=> StackOverflowError It appears to be caused by replacing x with [x] infinitely recursively. Is it a bug or spec? -- You received this message because you are subscribed to the Google Groups "Clojure" group.