Module-level (doc …) diagnostic omits where doc belongs #13
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A
(module NAME (doc "…") (fn …))is correctly rejected (unknown def head \doc`) but the message lists valid def heads without saying doc strings attach *inside*fn/datadefs; an author can read it and conclude doc strings are unsupported. One-line tidy: append a hint like "(doc strings attach insidefn/data` defs, not at module level)". Low cost; verbose-diagnostic-philosophy gap, not a bug.context:
docs/specs/2026-05-18-fieldtest-loop-recur.mdfriction.