[gambit-list] Newbie: define-macro question

Logan, Patrick D patrick.d.logan at intel.com
Thu Aug 18 16:30:00 EDT 2005


> 2. Making little sub-languages for specialized processing e.g.
>
> (with-vectors (v1 v2 v3) (v1 <- (+ v2 v3)))
>
> for summing up the vectors v2 and v3 and storing it in v1.

Nice!

I also liked the challenge in example #1 of allowing multiple bodies in
the bindings.

Here's a challenge for #2 -- would this language be any more usable by
eliminating the need to declare the vectors, i.e. how about this...

(with-vectors (v1 <- (+ v2 v3)))

-Patrick



More information about the Gambit-list mailing list