What to do for bad arguments to foreign-status-plist? hga@xxxxxx (10 Aug 2020 15:10 UTC)
Re: What to do for bad arguments to foreign-status-plist? Lassi Kortela (10 Aug 2020 15:14 UTC)
Re: What to do for bad arguments to foreign-status-plist? Lassi Kortela (10 Aug 2020 15:38 UTC)
Re: What to do for bad arguments to foreign-status-plist? Lassi Kortela (14 Aug 2020 13:31 UTC)
Promise objects Lassi Kortela (14 Aug 2020 13:46 UTC)
Re: Promise objects Lassi Kortela (14 Aug 2020 14:04 UTC)

Re: What to do for bad arguments to foreign-status-plist? Lassi Kortela 10 Aug 2020 15:14 UTC

> When (foreign-status-plist /foreign-status-object/) is handed something
> that's not a foreign-status-object, what should it do?  Would raising an
> non-continuable error always be the right thing??

"It is an error" to pass something other than a foreign-status object to
this procedure is the usual SRFI verbiage, meaning it's undefined
behavior. Or just don't mention it -- SRFI procedures do UB on undefined
argument types by default. Good to raise an exception, but not required.

What does `foreign-status-plist` do, return the whole plist? Does
enumerating the properties need to be in the API? If it does, then
`(foreign-status-properties st) -> list of symbols` would be better for
encapsulation. The implementor has more choice re: internal
representations and we can postpone the decision about transparent lambdas.