3 ms·
Hey, nothing wrong with that. As long as there's a consistent standard, it does make things more readable.
by exelius 13y ago
Hey, nothing wrong with that. As long as there's a consistent standard, it does make things more readable.
- rootbear 13y agoI agree about consistency but I don't find that style more readable. It wastes vertical space to little benefit.
- john_b 13y agoI agree with you stylistically and don't personally use that brace placement. However, given the number of people writing C++ code for the F-35, it makes sense to settle on a standard that is never ambiguous. When nesting multiple control statements, it can sometimes require good judgment to know where to place braces for maximum readability. Giving each one its own line avoids requiring your developers to exercise good judgment in all the myriad cases.
- exelius 13y agoYeah, but that's a stylistic choice. IMO this is one of those cases where one choice isn't better than another, and it's just better to have made a decision.
- Too 13y agoI think he's referring to apples "goto fail" bug to show it wouldn't happen under a project with strict guidelines :)