[Top][All Lists]

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

Re: map.el and naming

From: Stephen J. Turnbull
Subject: Re: map.el and naming
Date: Tue, 03 Mar 2015 00:24:08 +0900

Eli Zaretskii writes:

 > If there are APIs that make sense for maps, IMO they should be generic
 > APIs that can handle both objects now handled by seq.el and those in
 > map.el.  IOW, if only some of the APIs must be map-specific, that
 > doesn't mean we need to make them all map-specific, IMO.

This just doesn't make sense in Emacs Lisp because (with the exception
of hash-tables) mapping types are represented as lists, and the only
way to determine whether a list is a sequence or a map is by looking
at the function you call on it.

reply via email to

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