Re: inspect-properties -- return an abstract inspector object? Vincent Manis (he/him) (16 Aug 2026 19:13 UTC)

Re: inspect-properties -- return an abstract inspector object? Vincent Manis (he/him) 16 Aug 2026 19:13 UTC

On 2026-08-16 09:58, Zhu Zihao wrote:
> Therefore, I suggest that (inspect-properties OBJ) return an abstract
> "inspector" object that holds a reference to OBJ for inspection and
> provides the following API:
>
> (inspector-properties INSPECTOR): Return all available properties of
> INSPECTOR.
>
> (inspector-get-property INSPECTOR PROP): Return the value of PROP of
> INSPECTOR.

Can I suggest replacing inspector-properties with (inspector-map proc)
and (inspector-foreach proc)?

-- vincent