[plt-scheme] with-struct

From: Carl Eastlund (carl.eastlund at gmail.com)
Date: Wed Oct 21 22:08:23 EDT 2009

On Wed, Oct 21, 2009 at 10:04 PM, Eli Barzilay <eli at barzilay.org> wrote:
> Well, it should be easy to make that `with-foo' macro detect when the
> value expression is really an identifier, and bind names like this:
>  (with-posn a
>    (printf "<~s,~s>" a.x a.y))
> But that's getting too close to something like a real `.' infix syntax
> (IIRC, Jens had implemented something like that).

So this macro is going to have different lexical binding structure if
its argument -- an expression -- happens to be in the form of an
identifier, than if it's any other expression?

I am wary of such voodoo.


Posted on the users mailing list.