DStyle: Braces on same line

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jul 13 10:09:20 PDT 2014


Danyal Zia:

> I noticed that in Andrei's talks and his book, he used braces 
> on the same line of delcaration, however Phobos and other D 
> libraries I know use braces on their own line.

Rosettacode D examples always use the Egyptian style. For my code 
I use the same style, but Phobos contributions (and future ddmd) 
should put opening braces on their own line.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list