[plt-scheme] Re: applying set! on the contents of a variable

From: Eli Barzilay (eli at barzilay.org)
Date: Mon Oct 1 12:24:21 EDT 2007

On Sep 30, Majorinc, Kazimir wrote:
> Eli Barzilay wrote:
> > Lots of quotes mean that you should learn how to use quasiquotes,
> > or even better -- `define-syntax' and `syntax-rules'.  These will
> > get you much smaller and more understandable code. Lots of `eval's
> > are an indication that your solution is not great.
> 
> Thanks for explanation of reasons behind non-local eval. What's
> wrong with evals? Do you mean that simpler code is possible or they
> are just generally bad?

No, they're not bad -- but there are rare situations in which they're
useful.  Your code could just as well use a hash table, instead.  (Or
using the namespace functions directly, which is using a namespace in
exactly the same way as a hash table.)

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!


Posted on the users mailing list.