From the go FAQ: > Why is len a function and not a method? > We debated this issue but decided implementing len and friends as functions was fine in practice and didn't complicate questions about the interface (in the…
From the go FAQ: > Why is len a function and not a method? > We debated this issue but decided implementing len and friends as functions was fine in practice and didn't complicate questions about the interface (in the…