[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#47368: [External] : bug#47368: 28.0.50; map-elt returns nil without
From: |
Drew Adams |
Subject: |
bug#47368: [External] : bug#47368: 28.0.50; map-elt returns nil without "deprecated" TESTFN |
Date: |
Thu, 25 Mar 2021 15:33:34 +0000 |
> > This is expected, as alist keys are tested with eq by default.
Since when? Where? Expected by whom, and by what code?
> > That's what the docstring is trying to warn about: alists default to
> > testing with eq, but can also use eql, equal, or anything else.
>
> Is it that obvious? We have `assoc' and `assq' built-in - to me it's
> not obvious that "alist keys are tested with eq by default". It's the
> default for `alist-get', ok, which is used by the implementation, but
> not everybody will know that. I would add a sentence about that.
+1.
Alists are general. They can be used in many ways.
Their keys can be tested in multiple ways. Neither
code nor doc should assume anything about how an
alist is composed or treated - nothing beyond the
fact that at least some of the list elements are
likely to be conses.
- bug#47368: 28.0.50; map-elt returns nil without "deprecated" TESTFN, dalanicolai, 2021/03/24
- bug#47368: 28.0.50; map-elt returns nil without "deprecated" TESTFN, Basil L. Contovounesios, 2021/03/24
- bug#47368: 28.0.50; map-elt returns nil without "deprecated" TESTFN, Michael Heerdegen, 2021/03/24
- bug#47368: 28.0.50; map-elt returns nil without "deprecated" TESTFN, dalanicolai, 2021/03/25
- bug#47368: [External] : bug#47368: 28.0.50; map-elt returns nil without "deprecated" TESTFN,
Drew Adams <=
- bug#47368: [External] : bug#47368: 28.0.50; map-elt returns nil without "deprecated" TESTFN, Basil L. Contovounesios, 2021/03/26
- bug#47368: [External] : bug#47368: 28.0.50; map-elt returns nil without "deprecated" TESTFN, Drew Adams, 2021/03/26
- bug#47368: [External] : bug#47368: 28.0.50; map-elt returns nil without "deprecated" TESTFN, Basil L. Contovounesios, 2021/03/26
- bug#47368: [External] : bug#47368: 28.0.50; map-elt returns nil without "deprecated" TESTFN, Drew Adams, 2021/03/26
- bug#47368: [External] : bug#47368: 28.0.50; map-elt returns nil without "deprecated" TESTFN, Basil L. Contovounesios, 2021/03/26
- bug#47368: 28.0.50; map-elt returns nil without "deprecated" TESTFN, Michael Heerdegen, 2021/03/26
- bug#47368: 28.0.50; map-elt returns nil without "deprecated" TESTFN, dalanicolai, 2021/03/26
- bug#47368: 28.0.50; map-elt returns nil without "deprecated" TESTFN, Stefan Monnier, 2021/03/26
- bug#47368: 28.0.50; map-elt returns nil without "deprecated" TESTFN, dalanicolai, 2021/03/26
- bug#47368: 28.0.50; map-elt returns nil without "deprecated" TESTFN, Basil L. Contovounesios, 2021/03/26