|
|
|
|
|
by weberc2
3518 days ago
|
|
> absurdity There's nothing absurd about it; interfaces are a reference type. If you have a reference to a reference, then checking the "outer" reference for nil doesn't tell you anything about the nullity of the "inner" reference. The advice is just a special case of "don't needlessly use pointers-to-pointers". |
|
I say this as someone who uses Go daily for my work and mostly likes it (despite the many warts).