Troels Henriksen <athas@...> writes:
> Currently, when SBCL generates CLOS accessor methods, it provides a
> dummy docstring. I think it would be neat if SBCL would use the
> provided :documentation for the slot instead. The attached patch
> changes SBCL's CLOS to do this.
I'm not sure I agree. Documentation for accessors is a different
thing from documentation for the slot, after all.
The autogenerated documentation could be nicer, though, like
"Reader for slot BAR of class FOO."
FWIW, the slot documentation can be accessed through MOP:
(documentation <slot-definition> t)
retrieves it. I don't feel terribly strongly about this though, so I
can be probably shown the error of my ways with a presuasive use-case
-- Nikodemus Schemer: "Buddha is small, clean, and serious."
Lispnik: "Buddha is big, has hairy armpits, and laughs."