[plt-scheme] boxes?

From: hendrik at topoi.pooq.com (hendrik at topoi.pooq.com)
Date: Wed Jan 24 14:39:37 EST 2007

On Wed, Jan 24, 2007 at 02:33:51PM -0500, Eli Barzilay wrote:
> On Jan 24, Joe Marshall wrote:
> > On 1/23/07, John Clements <clements at brinckerhoff.org> wrote:
> > >
> > > No, you're exactly right: set! changes a _binding_.
> > >
> > > Furthermore, you're also exactly right in saying that the
> > > similarities in syntax can be confusing.  Don't be suckered,
> > > though: set-car! changes a _value_, not a binding.
> > >
> > > I think you will find many sympathetic ears in suggesting that
> > > set!  and set-car! are unfortunately close.
> > 
> > If I could work my will I would remove set! from the language
> > altogether.
> 
> Should be doable now: just make
> 
>   (set! id expr)
> 
> expand to
> 
>   (set-box! id expr)

That seems to be the opposite of what is wanted.  I think he wants to 
make set! illegal.  Or change its name to something less analogous -- 
line setq or maybe even setq!

-- hendrik


Posted on the users mailing list.