Re: [ANN] Clojure 1.3 RC0

2011-09-14 Thread Paul Stadig
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:

Re: [ANN] Clojure 1.3 RC0

2011-09-14 Thread David Nolen
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.

Re: [ANN] Clojure 1.3 RC0

2011-09-14 Thread Paul Stadig
For unsupported behavior it seemed to work pretty well in our code :), but perhaps it was just a timebomb. In our case it was several layers of macros obscuring the recur across try. I guess we'll have to figure out how to rewrite around it, when we get around to picking up 1.3. Paul --

Re: [ANN] Clojure 1.3 RC0

2011-09-14 Thread Sean Corfield
On Wed, Sep 14, 2011 at 8:45 AM, Paul Stadig p...@stadig.name wrote: This compiles fine in 1.2.1, but fails in 1.3.0-RC0 Intentional removal: https://github.com/clojure/clojure/blob/master/changes.txt 1.3 Disallow recur across try -- Sean A Corfield -- (904) 302-SEAN An Architect's View --

Re: [ANN] Clojure 1.3 RC0

2011-09-14 Thread Aaron Bedra
And the supporting ticket in JIRA http://dev.clojure.org/jira/browse/CLJ-31 On 09/14/2011 12:05 PM, Sean Corfield wrote: On Wed, Sep 14, 2011 at 8:45 AM, Paul Stadig p...@stadig.name wrote: This compiles fine in 1.2.1, but fails in 1.3.0-RC0 Intentional removal:

Re: [ANN] Clojure 1.3 RC0

2011-09-14 Thread Paul Stadig
Yeah it makes sense and is vaguely familiar now. I should have read the changelog. In our case we have a with-channel macro that expands into a try that I think could be moved up to a higher level and not be recuring across a try. Thanks, Paul -- You received this message because you are

Re: [ANN] Clojure 1.3 RC0

2011-09-14 Thread Sean Corfield
On Wed, Sep 14, 2011 at 9:43 AM, Aaron Bedra aaron.be...@gmail.com wrote: And the supporting ticket in JIRA http://dev.clojure.org/jira/browse/CLJ-31 Nice. Now I understand better why this was disabled. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World

[ANN] Clojure 1.3 RC0

2011-09-13 Thread Christopher Redinger
Clojure 1.3 RC0 is now available at http://clojure.org/downloads Changes since Beta 3: * Optimization should not demote BigInts (CLJ-836) * Added Intrinsics * fix nary-inline so *unchecked-math* works again Please download it and let us know how it works for you. 1.3 is getting close. -- You

Re: [ANN] Clojure 1.3 RC0

2011-09-13 Thread Sean Corfield
On Tue, Sep 13, 2011 at 6:02 AM, Christopher Redinger redin...@gmail.com wrote: Clojure 1.3 RC0 is now available at http://clojure.org/downloads Changes since Beta 3: * Optimization should not demote BigInts (CLJ-836) * Added Intrinsics Could someone speak to this change since it didn't have