emacs-devel
[Top][All Lists]
Advanced

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

Re: map.el and naming


From: Nicolas Petton
Subject: Re: map.el and naming
Date: Sun, 12 Apr 2015 16:52:23 +0200

Stefan Monnier writes:

>>>> "dict-" is short. "Dictionary" is another well-known name for a mapping
>>>> data structure.
>>> "dict-" is OK with me.
>> It would be fine (short and meaningful), but I don't really like how it
>> sounds.  I know I'm being picky here...
>
> I also prefer "map-" in general, FWIW.
>
>> Thanks for the suggestions everyone, I'll think about this for a while.
>
> So it seems the alternative is between finding a replacement for the
> "map, the type" (where "dict" is the best candidate so far) and finding
> a replacement for "map, the operation" (not sure what the best
> candidates would be here, maybe "iterate", or "loop", or "visit"?).

The candidate I like the most is "apply": `map-apply', `map-keys-apply'
and `map-values-apply'.

Nico
-- 
Nicolas Petton
http://nicolas-petton.fr

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]