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

Re: Ongoing work, maps and dictionaries

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.

On Mon, Nov 10, 2003 at 12:11:09PM -0800, Bradd W. Szonye wrote:
> > The current draft has this change, with a Map type for
> > single-key->single-value collections, and a Dictionary subtype for
> > single-key->multiple-value collections.
> Not too happy about the specific name choices, though. Set theory calls
> a MxN mapping a "relationship" or just "mapping." Mx1 mappings are
> usually called "partial functions" or "functions" (depending on whether
> the mapping covers the entire domain). In other words, "mapping" is the
> more general name.

Thats true in the literature but confusing as you note.  Its consistent 
though with the names used by a couple of other collection APIs.  
Dictionary at least Just Makes Sense, as real dictionaries bind words to 
one or more definitions.  


Attachment: pgp1i3ArRXWxW.pgp
Description: PGP signature