Raynes/tryclojure

Gary's evil code breaks

Opened this issue · 1 comments

@fredericksgary posted some crazy code that behaves differently in tryclj.com vs. a local REPL (w/ every version of clojure I could get my hands on)

In tryclj.com:

(let [let 'let let' let] (let let' let))
;=> java.lang.IllegalArgumentException: let requires a vector for its binding in clojure.core:

In local REPL:

(let [let 'let let' let] (let let' let))
;=> let

No idea how tryclj.com works, but thought you guys might like to know in case this isn't desired behavior.

As of today these are the results in tryclj.com:

(let)
clojure.lang.ArityException: Wrong number of args (0) passed to: core$let

[let 'let let' let]
java.lang.RuntimeException: Can't take value of a macro: #'clojure.core/let

(let let' let)
java.lang.IllegalArgumentException: let requires a vector for its binding in clojure.core:

Brand new to clojure, so I don't know the solution, but this might help debug it.