Re:Portable Cloud Programming with Go Cloud
by ironjunkie on Tuesday July 24, 2018 @02:20PM
(#17603668)
agreed that the := that can be used when one new var is introduced but not the others is extremely confusing.
I also hate the inconsistent behavior when you check multiple errors in a row, the first one will get := but not the second one (if you don't put those in a if statement, which I never do).
But now if for some reason, you remove the first := statement, the code will error on the second one, that needs to be changed from = to :=
I also hate the inconsistent behavior when you check multiple errors in a row, the first one will get := but not the second one (if you don't put those in a if statement, which I never do). But now if for some reason, you remove the first := statement, the code will error on the second one, that needs to be changed from = to :=