Re: Stumped: unable to resolve symbol in macro expansion

2014-07-21 Thread Matthew DeVore
(defun foo (x) (println x)) (foo x) ; generates the error On Sun, Jul 20, 2014 at 5:46 PM, Matthew DeVore mat...@gmail.com javascript: wrote: I don't have a Clojure REPL handy at the moment but it looks like the x symbol is being resolved in the macro context rather than the expansion

Stumped: unable to resolve symbol in macro expansion

2014-07-20 Thread Matthew DeVore
I don't have a Clojure REPL handy at the moment but it looks like the x symbol is being resolved in the macro context rather than the expansion context. In the macro source, where you have a plain x, try to replace it with ~'x ... This blog post may be relevant:

Re: Improving pprint behavior for anonymous functions

2014-04-26 Thread Matthew DeVore
Greg's is a nice and clean solution for the data visualization problem, assuming you're only going to use partials. I hacked together a solution to support functions with equality semantics, if anyone is interested. It doesn't support anonymous functions or closures, but doing that would

Improving pprint behavior for anonymous functions

2014-04-25 Thread Matthew DeVore
Hi, There has been one thing bugging me for a long time that seems worth it to fix, and I was wondering if anyone else has had the same problem. I have enjoyed using Clojure's REPL and embracing a Clojure-style data model for my app, where everything is a glorified map or vector and there are

Re: Improving pprint behavior for anonymous functions

2014-04-25 Thread Matthew DeVore
of impure functions the equality does not hold. On Friday, April 25, 2014 11:01:37 AM UTC-5, Matthew DeVore wrote: Hi, There has been one thing bugging me for a long time that seems worth it to fix, and I was wondering if anyone else has had the same problem. I have enjoyed using Clojure's

Re: Improving pprint behavior for anonymous functions

2014-04-25 Thread Matthew DeVore
在 2014年4月25日星期五UTC-7下午12时16分22秒,Alex Miller写道: On Friday, April 25, 2014 1:23:49 PM UTC-5, Matthew DeVore wrote: Thanks for pointing out the ticket, but based on the Description, it falls short of what I need. It doesn't have any additional information that I can't deduce from looking