Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wanted: prettier (or useful) debug info of compile, like "Rust" #39826

Closed
yam8511 opened this issue Jun 24, 2020 · 1 comment
Closed

wanted: prettier (or useful) debug info of compile, like "Rust" #39826

yam8511 opened this issue Jun 24, 2020 · 1 comment

Comments

@yam8511
Copy link

yam8511 commented Jun 24, 2020

Like title above, I like go, so I hope go build can more friendly help for gopher to develop programming.

  1. compile info of Go

image

  1. compile info of Rust

image

Thank everyone who contribue to go.

@ianlancetaylor
Copy link
Contributor

When posting plain text, please use plain text, perhaps with Markdown markers. Please do not post images. Images are harder to read and don't support cut-and-paste. Thanks.

The additional comments that the Rust compiler emits don't make sense for Go. There is no way to avoid the warning by doing anything like prefixing an underscore. There is no way to disable the warning, so the #[warn(unused_variables)] note doesn't help.

More generally, the Go compiler adheres to the standard Unix philosophy of preferring to be quiet. The place to report more information is not the compiler, but the IDE. Go supports easy tooling for operations like detecting unused variables.

I'm going to close this issue because we aren't going to take any action here. Please comment if you disagree.

@golang golang locked and limited conversation to collaborators Jun 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants