I have my editor set up to hilight "// DEBUG", so I tend to do:

> _ = foo // DEBUG

Problem solved. :)

On Thursday, February 1, 2018 at 3:34:07 PM UTC, Jan Mercl wrote:
>
> On Thu, Feb 1, 2018 at 4:26 PM <[email protected] <javascript:>> 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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to