[ClojureScript] Re: [ANN] Clojure 1.7.0-beta2

2015-05-02 Thread Brandon Bloom
Upgrading a couple of projects to 1.7 seems to have gone quite smoothly. Thanks! However, I've encountered some problems with new features, like .cljc files. Please see https://groups.google.com/forum/#!topic/clojure/TrYkq1lUuZw Cheers, Brandon On Friday, April 24, 2015 at 11:27:34 AM UTC-7,

[ClojureScript] Re: [ANN] Clojure 1.7.0-beta2

2015-05-01 Thread Nicola Mometto
Fluid Dynamics writes: That's weirdly inconsistent with e.g. (defn ^String prefix [s n]...). It can be surprising behaviour, but it's not an inconsistency. As per the documentation, metadata on the symbol being def'd *is* evaluated, metadata on the argvec isn't. Evaluating `String` produces

[ClojureScript] Re: [ANN] Clojure 1.7.0-beta2

2015-05-01 Thread Alex Miller
On Fri, May 1, 2015 at 2:53 PM, Nicola Mometto brobro...@gmail.com wrote: Now, if you want to argue that the compiler should immediately throw an error as soon as the wrong type hint is used rather than silently ignore it and fail when the type-hinted form is used, I'll agree with you and

[ClojureScript] Re: [ANN] Clojure 1.7.0-beta2

2015-05-01 Thread Nicola Mometto
Alex Miller writes: On Fri, May 1, 2015 at 2:53 PM, Nicola Mometto brobro...@gmail.com wrote: Now, if you want to argue that the compiler should immediately throw an error as soon as the wrong type hint is used rather than silently ignore it and fail when the type-hinted form is used, I'll

[ClojureScript] Re: [ANN] Clojure 1.7.0-beta2

2015-05-01 Thread Nicola Mometto
The type-hint on init-state is wrong. It has to be either (defn {:tag 'longs} init-state [] (long-array 1)) or (preferred) (defn init-state ^longs [] (long-array 1)) shlomivak...@gmail.com writes: I tried playing around with the new primitive type hints and got the following weird behavior