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

Re: *-clear![!] operator

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

scgmille@xxxxxxxxxxxxxxxxxx wrote:

This is missing from the spec. A functional version of clear isn't necessary, as it would be equivalent to constructing a new, empty collection.

The result is equivalent but the invocation isn't: constructing a new collection requires knowledge of the collection type; calling clear doesn't. For that reason, and for sake of uniformity, there should be a functional version of clear.