DEV Community

Discussion on: Why I’m So Frustrated With Go

Collapse
ikirker profile image
Ian Kirker

For instance, try writing a reusable exponential backoff algorithm. Oh, and you can’t use interface{}.

"For instance, try writing a matrix/matrix multiply. Oh, and you can't use numerical types. We're writing in a language with string support for a reason."

It's not an exact analogy, but it seems disingenuous to include an arbitrary handicap and then complain that something is difficult.

Collapse
klnusbaum profile image
Kurtis Nusbaum Author

I would argue that the handicap is not arbitrary. As I explained in the sentence after, using interface{} would cause the loss of static type checking which is incredibly valuable.