Lists as dictionaries
Marc Nieper-Wißkirchen
(20 Jul 2021 17:07 UTC)
|
Re: Lists as dictionaries Lassi Kortela (20 Jul 2021 17:17 UTC)
|
Re: Lists as dictionaries
Marc Nieper-Wißkirchen
(20 Jul 2021 17:23 UTC)
|
Re: Lists as dictionaries
Lassi Kortela
(20 Jul 2021 17:23 UTC)
|
Re: Lists as dictionaries
Marc Nieper-Wißkirchen
(20 Jul 2021 17:29 UTC)
|
Re: Lists as dictionaries
John Cowan
(20 Jul 2021 17:39 UTC)
|
Re: Lists as dictionaries
Marc Nieper-Wißkirchen
(20 Jul 2021 17:54 UTC)
|
Re: Lists as dictionaries
John Cowan
(20 Jul 2021 20:50 UTC)
|
Re: Lists as dictionaries
Marc Nieper-Wißkirchen
(20 Jul 2021 20:58 UTC)
|
Re: Lists as dictionaries
Dr. Arne Babenhauserheide
(21 Jul 2021 18:27 UTC)
|
Re: Lists as dictionaries
John Cowan
(22 Jul 2021 00:25 UTC)
|
Re: Lists as dictionaries
Marc Nieper-Wißkirchen
(22 Jul 2021 05:38 UTC)
|
Re: Lists as dictionaries
John Cowan
(22 Jul 2021 23:21 UTC)
|
Re: Lists as dictionaries
Marc Nieper-Wißkirchen
(23 Jul 2021 06:13 UTC)
|
> The SRFI 225 idea of using a type predicate to support polymorphism can > only reliably support either alists or plists but not both. (pair? (car list)) could identify an alist, since plists rarely if ever have pairs as keys. (Usually plists have symbol keys so that eq? can be used, though it almost certainly makes sense to support keys that are eqv? or even just equal? without being eq?. However, pair keys are a pretty extreme case.) I do agree that the above is non-ideal, since the other procedures in the SRFI would happily create plists with pair keys if told to do so. The case of the empty list is also problematic. Is it an alist or a plist?