5 ms·
One of the thing that annoyed me is that the language forces you to put your opening braces on the same line as your condition/loop. I like to have them on the
by TheCams 11y ago
One of the thing that annoyed me is that the language forces you to put your opening braces on the same line as your condition/loop. I like to have them on the same vertical line, I find it easier to see the blocks.
- michaelmior 11y agoI personally prefer to way Go does it although there are other formatting standards that are enforced that bug me. However, even if I don't like everything I am somewhat fond of the fact that this actually enforced.
- jeremiep 11y agoI don't mind that, after years of working in languages like Clojure, CoffeeScript, Python and Haskell (mostly for personal projects, at work I use C++/C#/Java) I now see braces as syntactic noise and use indentation to see the blocks. But that's just a matter of preferences. I'm more curious about Go on a semantical level. What does it make practical and idiomatic?
- billconan 11y agoExactly, I also find it easier to see the blocks.