switch()
Casper Færgemand" <shorttail at hotmail.com>
Casper Færgemand" <shorttail at hotmail.com>
Tue Feb 18 09:27:16 PST 2014
On Tuesday, 18 February 2014 at 06:00:25 UTC, Nick Sabalausky
wrote:
> Erm, between all of that, plus your strong objection to
> "default: break;", I really do get the impression you're just
> simply being very OCD about this stuff. I don't mean that as an
> insult, I just think it's all a bit "Adrian Monk of source
> code", if you're familiar with the reference.
I have code formatting OCD. Switch case is an abomination. It
looks nice with spaces and all, but anything that can't be
identified by an auto formatter should die in a fire.
Also, I use arbitrary empty structs in my multi threading code as
tokens. The type pattern matching of the mailbox looks nice.
Unlike the switch case statements.
Tl;dr: Manual indentation, ew. Identically indented } on multiple
lines, ew.
More information about the Digitalmars-d
mailing list