Ongoing work, maps and dictionaries scgmille@xxxxxx (10 Nov 2003 03:47 UTC)
Re: Ongoing work, maps and dictionaries Bradd W. Szonye (10 Nov 2003 20:11 UTC)
Re: Ongoing work, maps and dictionaries scgmille@xxxxxx (10 Nov 2003 20:42 UTC)
Re: Ongoing work, maps and dictionaries Jens Axel Søgaard (10 Nov 2003 22:46 UTC)

Re: Ongoing work, maps and dictionaries Jens Axel Søgaard 10 Nov 2003 22:45 UTC

xxxxxx@freenetproject.org wrote:
> 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.

Being a math major this use of the word "map" is very confusing.
I use the terms "map" and "function" as synonyms. If I want to
describe a one-to-many or a many-to-may relation, I use the word
"relation".

   <http://mathworld.wolfram.com/Map.html>
   <http://mathworld.wolfram.com/Relation.html>

I.e. I support the choice "Map" for single-key->single-value collections
and "Dictionary" for single-key->multiple-value collections.

> Dictionary at least Just Makes Sense, as real dictionaries bind words to
> one or more definitions.

The word "relation" are also well known to most programmers due to the
wide spread use of relational databases, but "dictionary"
has in this context the advantage that one knows its a one-to-many relation
and not a many-to-many relation.

--
Jens Axel Søgaard