On Thursday, October 13, 2016 at 11:24:50 PM UTC+8, Jesper Louis Andersen 
wrote:
>
> The rule is that a short variable declaration requires that at least one 
> non-blank variable is new (the specification even says so) Consider
>
>     _, y := 4,5
>
> where one variable, y, is new. In
>  
>     _ := 6
>
> or
>
>     _, _ := 5, 7
>
> this rule is violated, since there are no non-blank variables (and thus 
> vacuously nothing new).
>
> I think the reason this is a rule is because it may detect some spurious 
> errors by forcing the programmer to write code in a certain style, but I 
> may be wrong.
>


What spurious errors? 
 


> On Thu, Oct 13, 2016 at 4:50 PM <di...@veryhaha.com <javascript:>> wrote:
>
>> .
>>
>> -- 
>> 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...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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