Re:Clear is better than clever [pdf]
by derangedHorse on Monday May 06, 2019 @07:55AM
(#19838545)
That's one of the things that I hate about Go. That and how they force me to write an 'else' on the same line as the closing brace of the 'if'.
Rust does this too, I think.
Re:Clear is better than clever [pdf]
by steveklabnik on Monday May 06, 2019 @09:43AM
(#19839303)
(Yes, it does.)
In C++ it would look like this:
but in go, both would look the same, like this: So there is a difference syntactically, and the compiler will handle them differently, but whether the difference is semantically relevant is debatable.