emacs-devel
[Top][All Lists]
Advanced

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

Re: member inconsistency?


From: Philipp Stephani
Subject: Re: member inconsistency?
Date: Thu, 28 Jan 2016 09:41:22 +0000



Nicolas Goaziou <address@hidden> schrieb am Do., 28. Jan. 2016 um 09:41 Uhr:
Hello,

The following behaviour is surprising

  (assq 'a 'b)   => #ERROR
  (memq 'a 'b)   => #ERROR
  (assoc 'a 'b)  => #ERROR

For completeness, memql and assq have the same behavior.
 

so far so good, but

  (member 'a 'b) => nil

I was caught by this when replacing (member SYMBOL ...) with (memq
SYMBOL ...). Is it intentional? Should I file a bug report instead?

Yes, I think this is a bug. There is no reason why `member' should be so inconsistent, especially given that is has (almost) the same docstring as memq and memql.

reply via email to

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