> 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 that clojure.test uses clojure.template
and
why the error was raised.

On Apr 23, 10:13 am, Stuart Sierra <the.stuart.sie...@gmail.com>
wrote:
> 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 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.
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

Reply via email to