Error messages don't have a particular "style guide" at the moment:
- there are simple errors of the form:
func main must have no arguments and no return values - there are errors with clarifications using a
::undefined: x - there are errors with clarifications using a
;:cannot make int; type must be slice, map, or channel - there are errors with clarifications using parentheses:
cannot slice s (variable of type chan int) - there are errors with clarifications on separate lines, indented, possible combined with any of the forms above
Maybe we can come up with a reasonably consistent set of rules for how to format errors (e.g., when to use ':', ';', or parentheses). If we can, that we should be able to encode this for consistent behavior.
Comment From: griesemer
Too late for 1.19.
Comment From: findleyr
This isn't getting done for 1.21. Move to 1.22?
Comment From: griesemer
Moving to 1.23.
Comment From: griesemer
Too late for sweeping changes. Moving to 1.24.
Comment From: griesemer
Ongoing. Moving to 1.25.