|
|
|
|
|
by sacado2
2313 days ago
|
|
> It seems to promote verbosity just for the sake of so called "simplicity". I don't think simplicity is the goal, I think simplicity is a mean to an end, and that end is readability. I remember reading some C++ code I didn't write, and I couldn't understand where the bug was coming from. Turns out the developer had redefined the () operator (or something like that) so that it behaved quite the same as expected, except in a few corner cases. That's the kind of bug hunt go preserves you from, but verbosity is the price you have to pay. > The first error was unintentionally discarded. I've seen this happen in actual code bases. You're right, and AFAIK linters don't catch these. |
|