Hi,
What is the canonical way to document class fields in Scribble?
Consider for example the following code:
#lang typed/racket
(define my-class%
(class object%
(super-new)
(init-field [public-integer : Integer])))
(define obj (new my-class% [public-integer 3]))
(set-field! public-integer obj 4)
(get-field public-integer obj)
How would I write a Scribble documentation entry for public-integer
?
The obvious section 4.2.4 Documenting Classes and Interfaces does not seem to mention field documentation, and after a quick search in the class-rich GitHub - racket/gui I don't seem to find any examples.
Is it because publicly exposing fields is strongly discouraged? I don't see this message in the docs, but maybe I am missing something.