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

Re: Shorthand procedures?

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:
First, if we are to use collection-fold-keys-increasing, it makes sense that collection-fold-left is renamed to collection-fold-increasing as well.

Second, Is there any objection to adding the procedures collection-fold and collection-fold-keys as synonyms for collection-fold-increasing and collection-fold-keys-increasing respectively?

I have a second thought that addresses my concerns:

collection-fold[-keys]-left and collection-fold[-keys]-right are not specified with regard to the order of enumeration. For unordered collections, collection-fold-right the implementation may either raise an error or provide an enumeration in reverse order or collection-fold-left.

collection-fold[-keys]-increasing and collection-fold[-keys]-decreasing are specified to be an ordered enumeration and are only defined for ordered collections.

"I love deadlines. I love the whooshing sound they make as they fly by." -- Douglas Adams