[plt-scheme] likely 3.99.0.22 -> 3.99.0.23 incompatibility: hashtables

From: Henk Boom (lunarc.lists at gmail.com)
Date: Tue Apr 8 16:14:39 EDT 2008

On 08/04/2008, Matthew Flatt <mflatt at cs.utah.edu> wrote:
> At Tue, 08 Apr 2008 20:40:10 +0200, "Majorinc, Kazimir" wrote:
>  > Matthew Flatt wrote:
>  > >  * Add `table-remove', the functional complement of `table-remove!'.
>  > >
>  > This name suggests that table-remove function mutated original hash
>  > table and the absence of ! is not unambiguous denial of that. More
>  > descriptive names like copy-of-table-without could be less confusing.
>
>
> You're right, but that's also longer and more difficult to remember.
>  Short and consistent notation is an explicit goal of this experiment.
>

Why not hash-with or such?

(hash-with prices 'apple "$1.00")

It could even be generalized it to take any odd number of arguments.
Would this allow for a more efficient implementation for multiple
insertions?

    Henk Boom


Posted on the users mailing list.