The Go compiler is able to detect unused variables, and strangely they are regarded as an error.

On 8/1/2012 5:38 PM, bearophile wrote:
Detecting unused variables is a core feature, it belongs in the
compiler, like compile-time array bound tests and other errors currently
detected by DMD. This allows everyone to use it with minimum work, so
everyone enjoys it, and it requires less work to be implemented because
the compiler already does lot of analysis.

Bye,
bearophile

Reply via email to