the Go compiler does not report warnings

There are two reasons for having no warnings. First, if it’s worth complaining about, it’s worth fixing in the code. (And if it’s not worth fixing, it’s not worth mentioning.) Second, having the compiler generate warnings encourages the implementation to warn about weak cases that can make compilation noisy, masking real errors that should be fixed.

Source: FAQ - The Go Programming Language

added 2012-03-25T21:47:34Z by anders

Tags: programming golang compilers