Open
Description
Related part: https://github.com/uber-go/guide/blob/master/style.md#avoid-naked-parameters
Both VS Code (with Go extension) and GoLand have provided “inlay hints” that can show every parameters name:
I wonder if we can add a section mentioning this feature to give the newer codebase another choice – no need to write such a hint explicitly? This feature makes us no longer need to write C-style comments anymore, since maintaining a separate comment can be easily out-of-sync with the original parameter name, and writing such a comment is a bit uninteresting for this IDE era, I think.
Metadata
Metadata
Assignees
Labels
No labels