[plt-scheme] mutable lists/dicts?

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Sat Apr 10 10:05:59 EDT 2010

At Sat, 10 Apr 2010 09:47:09 -0400, Carl Eastlund wrote:
> I'm not sure why mutable lists aren't dictionaries, though.

Mutable association lists don't really fit the dictionary API:
If you want to extend an empty mutable association list, then you need
`dict-set!' to return a mutable pair, rather than void. Also, the empty
mutable association list has the same representation as an association

I suppose that mutable association lists could be supported if
`dict-ref!' is allowed to update existing mappings but not add new
ones, which would be like vectors. But what would be the point?

Posted on the users mailing list.