[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New version of SRFI 113

This page is part of the web mail archives of SRFI 113 from before July 7th, 2015. The new archives for SRFI 113 contain all messages, not just those from before July 7th, 2015.

16. What provisions should we have for controlling which element of a
set is preserved when a new element equal to an existing element is added?

Does R7RS-large have keyword arguments (or will it)? I think that in common use cases of sets, the overwrite-vs-preserve policy is immaterial and any reasonable default would be OK. But there are rarer uses cases when one or the other behavior is crucial. A keyword argument seems like a clean way of accommodating the rare cases without cluttering up the common ones.

Kevin Wortman