|
|
|
|
|
by StavrosK
4850 days ago
|
|
My problem with it is how frustrating it is to write when you're not very familiar with it, but I suspect that's more of a generic complaint about learning a new language rather than soecifically about Go. Every line I write, I go "argh, I wonder if this is the idiomatic way to do this" and I get frustrated a lot. I love the features, though, especially the concurrency ones. It was conceptually trivial to write a multicasting TCP proxy in it. |
|
After a little while you start thinking about "can this code be clearer? Are the intentions obvious?" and that makes the code much easier to write.
Go is incredibly easy to refactor, so instead of worrying about being exactly right, you can focus on "is this easy to reason about?". My experience has been that this process will get you very close to idiomatic code on its own.