Some people put all their variable declarations at the beginning of a 
function.
Others put them at various places in a function, where the variables are 
used.

I've always wondered if a variable declaration results in any runtime 
overhead.
One obvious concern is what happens if a variable declaration is inside a 
loop.

Cordially,
Jon Forrest


-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/026878fd-87a1-4e3f-b590-12356861b664n%40googlegroups.com.

Reply via email to