emacs-devel
[Top][All Lists]
Advanced

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

Re: [ELPA] New package: hap.el


From: Tino Calancha
Subject: Re: [ELPA] New package: hap.el
Date: Thu, 2 Mar 2017 15:52:42 +0900 (JST)
User-agent: Alpine 2.20 (DEB 67 2015-01-07)



On Thu, 2 Mar 2017, Stefan Monnier wrote:

In hap.el, optionally, you can convert from alist to hash table,
so that:
(let ((map '((1 . a) (1 . foo) (2 . b))))
  (equal
   (alist-get 1 map)
   (gethash 1 (map-into map 'hash-table))))
=> t

Oh, you've just found a bug in map.el.  The intention is that it returns t.
Wow, i'm on fire! Neither Michael Jordan in his best old times.
We might do plist-get setf-able as it was done for alist-get.

That seems to be unrelated to hap.el/map.el, or am I missing something?
Yeah, basically. I said because `map-put' or `map-delete', for instance. Maybe the implemention is simpler if we make `plist-get' setf-able.



reply via email to

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