Splitting foreign-error:code Lassi Kortela (27 Jul 2020 06:46 UTC)
Re: Splitting foreign-error:code Lassi Kortela (27 Jul 2020 08:26 UTC)
Re: Splitting foreign-error:code Lassi Kortela (27 Jul 2020 08:51 UTC)
Re: Splitting foreign-error:code John Cowan (28 Jul 2020 19:25 UTC)
Flat vs nested alist Lassi Kortela (27 Jul 2020 23:50 UTC)
Re: Flat vs nested alist Lassi Kortela (27 Jul 2020 23:53 UTC)
Re: Flat vs nested alist John Cowan (28 Jul 2020 03:06 UTC)
Pre-SRFI for property list utilities Lassi Kortela (28 Jul 2020 07:35 UTC)
Re: Pre-SRFI for property list utilities hga@xxxxxx (28 Jul 2020 11:00 UTC)
Plist utilities and SRFI 198 Lassi Kortela (28 Jul 2020 11:08 UTC)
Re: Plist utilities and SRFI 198 John Cowan (28 Jul 2020 18:12 UTC)
plist pre-SRFI hga@xxxxxx (12 Aug 2020 15:14 UTC)
Re: plist pre-SRFI John Cowan (12 Aug 2020 15:21 UTC)
Re: plist pre-SRFI John Cowan (12 Aug 2020 15:53 UTC)
Re: plist pre-SRFI hga@xxxxxx (12 Aug 2020 15:58 UTC)
Re: plist pre-SRFI John Cowan (12 Aug 2020 16:59 UTC)
Re: plist pre-SRFI hga@xxxxxx (12 Aug 2020 17:34 UTC)
Re: plist pre-SRFI John Cowan (12 Aug 2020 19:37 UTC)
Use of SRFI 198 in SRFI 170 hga@xxxxxx (12 Aug 2020 20:04 UTC)

Plist utilities and SRFI 198 Lassi Kortela 28 Jul 2020 11:08 UTC

> Give that property lists are as far as I can tell not defined at all
> in the current world of Scheme, shouldn't we start the SRFI process
> for them now so SRFI 198 has something to point at?

A property list is really just a "spread out" association list (alist).
The structure is so simple that it doesn't really need much supporting
infrastructure to be used effectively. For general usage a `plist-assoc`
would be nice, but for SRFI 198, `foreign-error-ref` would do its job.

More utilities would definitely be nice, but not really necessary when a
plist is just passed into `make-foreign-error` after which the
foreign-error abstraction takes care of everything behind the scenes. In
fact, the implementation can even convert the plist into an alist or a
hash-table internally.

> BTW, here's their definition from the Common List HyperSpec:
> http://www.lispworks.com/documentation/HyperSpec/Body/26_glo_p.htm#property_list

Good find. Indeed, plists have a long history in Lisp. Emacs uses them too.

Fun fact: any plist is built out of the same number of cons cells as the
equivalent alist.