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

Re: *-clear![!] operator

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.