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

Re: *-COPY, COLLECTION-FOLD-(LEFT|RIGHT), and comparison

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.



Missing *-copy is an oversight, and will be corrected.  It makes sense 
to have the full range of copy operators, so code could still be 
collection agnostic and yet clone a collection.

I don't see any advantage to having the full set of fold operators 
though, except for the (weak) argument of a performance improvement in 
dispatch when using the collection specific folder.  

As for comparison, it seems that just adding some language defining 
equal? over the collections would be sufficient.  This would leave the 
collections free to define equality for the values and the ordering they 
contain.  On the other hand, this would make a portable implementation 
more difficult.  

	Scott

-- 

Attachment: pgp6mjpBkhf8e.pgp
Description: PGP signature