Re: Stumped: unable to resolve symbol in macro expansion

2014-07-21 Thread Matthew DeVore
ambda-list) > [docstring forms] (parse-defun-decls decls-doc-forms) > args-var (gensym "args") > positional-parameters (get param-map '&positional)] > (if docstring > (comment ; *FINISH* docstring variant > ;; `(defn ~functio

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: http://amalloy.hubpages.com/hub/

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 requir

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 inf

Re: Improving pprint behavior for anonymous functions

2014-04-25 Thread Matthew DeVore
ould want the equality semantics; at > least in the case 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 i

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 n