It was unsupported behavior in 1.2.1. Now you get error sooner.

David

On Wed, Sep 14, 2011 at 11:45 AM, Paul Stadig <p...@stadig.name> wrote:

> This compiles fine in 1.2.1, but fails in 1.3.0-RC0
>
> (defn foo [[bar & baz]]
>   (try
>     (if (seq baz)
>       (if (= bar 99)
>         (throw (Exception. "FAIL"))
>         (recur baz))
>       bar)
>     (catch Exception e
>       :fail)))
>
> You get a compiler error: java.lang.UnsupportedOperationException: Cannot
> recur across try
>
> I assume there is a reason for this? Or should it be considered a bug?
>
>
> Paul
>
>
>  --
> 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 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