* Will Faught [170127 21:58]:
> Variable shadowing is rarely, if ever, a problem for me too; but what about
> for newcomers?
>
> I think my copy/paste point stands, though; everyone has those problems, at
> least occasionally.
I agree with you. See my earlier post for my reasoning:
https://gro
Variable shadowing is rarely, if ever, a problem for me too; but what about
for newcomers?
I think my copy/paste point stands, though; everyone has those problems, at
least occasionally.
On Fri, Jan 27, 2017 at 3:00 PM Tyler Compton wrote:
> While theoretically, I agree with your argument again
This seems to be a discussion about short variable names. What's the
connection?
On Fri, Jan 27, 2017 at 10:58 AM Shawn Milochik
wrote:
> Here's a good discussion about it:
>
> https://groups.google.com/d/msg/golang-nuts/J9QeizedpuI/ECifbR0YGcsJ
>
> TL;DR: scope
>
> --
> You received this messag
On Fri, Jan 27, 2017 at 6:00 PM, Tyler Compton wrote:
> While theoretically, I agree with your argument against using the short
> variable declaration pattern, I've personally found that in practice it
> isn't an issue. I think that if this is something you run into often, it
> might suggest that
While theoretically, I agree with your argument against using the short
variable declaration pattern, I've personally found that in practice it
isn't an issue. I think that if this is something you run into often, it
might suggest that you're letting too many variables into your scope,
whether that
Here's a good discussion about it:
https://groups.google.com/d/msg/golang-nuts/J9QeizedpuI/ECifbR0YGcsJ
TL;DR: scope
--
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
Which do you default to? I see a lot of code using short decls in most
cases, and only using long decls with no initialization where the zero
value is needed. It seems to me that long decls should be the default
declaration used because short decls are context-sensitive. That is, you
have no