[plt-scheme] immutable vector and box literals

From: Robby Findler (robby at cs.uchicago.edu)
Date: Tue Jan 29 16:12:17 EST 2008

Should we just get rid of literal boxes all together now?

Robby

On Jan 29, 2008 12:40 PM, Matthew Flatt <mflatt at cs.utah.edu> wrote:
> As of 3.99.0.10, vector and box literals are immutable:
>
>  > (vector-set! '#(1 2 3) 0 0)
>  vector-set!: expects type <mutable vector> as 1st argument....
>
> Along the same lines, `syntax->datum' produces immutable vectors and
> boxes instead of mutable ones.
>
> I doubt that this change will be controversial, but it may be
> interesting to check whether anyone is using mutable literals as a back
> door to share across instantiations of a module.
>
> Matthew
>
> _________________________________________________
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>


Posted on the users mailing list.