Go catches a bunch of simple programming errors like unused variables,
imports etc. Should it not catch bad appends like this ?
foo := []string{}
foo = append(foo)
I understand the signature of the append function is ([]any, on_or_more
...) which allows the compiler to build it - but such a simple mistake
could / should be also checked by the compiler...
Thoughts ?
Nz
--
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.