On Thu, Feb 1, 2018 at 4:26 PM <wright.ell...@gmail.com> wrote:

> You can also use _ to store unused variables. Like this:

That works, but I do not recommend to do that. The temporary '_= foo'
workaround is too easy to miss and it can stay accidentaly left in
production code. The earlier discussed 'use(foo)' avoids it happening.

-- 

-j

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to