|
|
|
|
|
by thiht
1000 days ago
|
|
> Go has a long list of booby traps like this Huh? Where’s the list? From the top of my head I think this is the only thing that repeatedly bit me, although I’m very aware of the behavior of for loop scoping. Linters save me nowadays at least. Are there other things like that in the language that deserve a fix? Maybe things to do with json un/marshaling? |
|
One weird thing that always goofed me up was that slices are passed by value but maps by reference. Always made it confusing how to pass them for serialization/deserialization. The compiler didn't complain it just panicked. Seemed like something the type system should catch.