Re:GCC 6: -Wmisleading-indentation vs. “goto fail;”
by KMag on Friday February 26, 2016 @11:16AM
(#11182147)
Both Rust and Golang have optional parens and mandatory braces, so for the same number of keystrokes one would have something more like:
(Keystroke count isn't an important metric for me, but apparently very important to some people.)
[ Parent
| on HN ]
Re:GCC 6: -Wmisleading-indentation vs. “goto fail;”
by GolDDranks on Friday February 26, 2016 @12:25PM
(#11182617)
I love this style. Braceless style always breaks when refactoring or adding/removing debug logging – so it makes sense to make the braces mandatory. And then, because you have a delimiting if and the starting brace, you don't need to have the parenthesis. Great!
Now if only Rust supported the elision of ; ... (Yeah, I know that they have a reason to not do that, but I don't buy it.)