| ▲ | kccqzy 12 hours ago |
| You ask a machine to write your code and you still care about being easy to read? In my experience the people who care the most about code readability tend to be the people most opinionated on having the right abstractions, which are historically not available in Go. |
|
| ▲ | thunky 11 hours ago | parent [-] |
| I don't think people mind reading Go as much as they mind writing it. |
| |
| ▲ | kccqzy 11 hours ago | parent [-] | | Nah all the `if err != nil` is just so much noise they obscures the real logic. And for the longest time it didn’t have generics to write map/filter/reduce on slices, forcing people to use loops where the intention is less clear. | | |
| ▲ | maleldil 8 hours ago | parent [-] | | Ideally, the errors shouldn't be returned as-is, but wrapped with context instead. If that context doesn't matter for you, you can have your editor wrap the if instead, which helps a lot. |
|
|