Hi,
I recently experimented with docstrings, and I stumbled over not being
able to define a function which only has a docstring as body:
(define (foo)
"bar")
(procedure-documentation foo)
⇒ #f
Adding a form makes the string act as docstring:
(define (foo)
"bar"
#f)
(procedure-documentation foo)
⇒ "bar"
I feel that this is inconsistent, which hurts even more, because it
breaks for the simplest showcase of docstrings.
My use case for using docstrings like this is that when I start writing
a function, I begin with the docstring. There I explain what I want to
do. Then I commit. Then I implement the function.