reify in go macro compile error

Description

(go
(reify java.util.Collection
(add [this o]
(println o)
(println this)
true)))

clojure.lang.Compiler$CompilerException: java.lang.RuntimeException: Unable to resolve symbol: this in this context

Environment

[org.clojure/clojure "1.5.1"]
[org.clojure/core.async "0.1.267.0-0d7780-alpha"]

Activity

Show:

Alex MillerNovember 4, 2014 at 10:02 PM

Not supported.

Ghadi ShaybanApril 22, 2014 at 3:55 PM

Reassigning to minor. The go macro will obviously not rewrite parking ops inside the reify. Lifting the reify into a var is a decent workaround.

Declined

Details

Assignee

Reporter

Priority

Created February 20, 2014 at 3:29 PM
Updated November 4, 2014 at 10:02 PM
Resolved November 4, 2014 at 10:02 PM