Russ Cox
unread,Apr 4, 2011, 10:22:11 PM4/4/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Matt Joiner, Steven, Johann Höchtl, golang-nuts
I have been writing some C code with gcc -Wall -Werror recently.
It makes prototyping code somewhat difficult to be told
"you didn't use that function, go fix it" when you're just
trying to test what you've got so far, or commenting out
calls that are possibly causing trouble. Of course the same
is true for warning about unused local variables too.
The difference is that, in Go, because of :=, an unused
local variable is very often a bug, while an unused unexported
function is much less often a bug.
Russ