Hi Atamert,
I'm not an expert but I believe REPL does compile the forms you enter to
> bytecode. It compiles an fn form into a JVM class that implements IFn. It
> also compiles a quoted form (such as `(fn ...) ) but this time it takes the
> form of a list (as in (list ...) ), IOW it's still dat
I tried updating to the latest version and it still keeps saying that peer
is not authenticated. I cannot upload anything its annoying!
On Thursday, July 3, 2014 10:02:07 AM UTC-4, Zach Oakes wrote:
>
> Even on the latest version (2.4.0), I've experienced problems in the last
> three weeks. I
Using clojure 1.6.0 and clojure.algo.monads, I got a compiler error that I
could reduce to this case:
(fn [c] (domonad sequence-m [_ (case c (\0 \1 \2 \3 \4 \5 \6 \7 \8) c)] c))
CompilerException java.lang.NegativeArraySizeException,
compiling:(/tmp/form-init1574284988203454652.clj:1:1)
Macro
The bug is not in `case` but is a result of calling `with-symbol-macros` on it.
Normally `case` expands to use a `sorted-map` for the lookup of case values
when you have a compact set of test values (as opposed to a sparse set). You
can see that here:
user=> (macroexpand '(case \a (\0 \1 \2 \3