On Thursday, August 11, 2011 11:34:30 simendsjo wrote: > On 11.08.2011 11:04, Jonathan M Davis wrote: > > On Thursday, August 11, 2011 10:50:41 simendsjo wrote: > >> On 10.08.2011 23:16, Jonathan M Davis wrote: > >>>> On 10.08.2011 22:12, Jonathan M Davis wrote: > >>>>> There a few things that were agreed upon (such as always putting > >>>>> braces on their own line), > >>>> > >>>> There is? Parallelism and json uses braces on the same line. > >>> > >>> It was agreed upon, and where it has been noticed, it has been > >>> fixed. > >>> But as I said, the style guide needs updating on a few points. > >>> Braces > >>> on their own line is one of them. > >>> > >>> - Jonathan M Davis > >> > >> Damn - I've been changing my D style to braces on the same line. It's > >> great as I do most D coding on a small laptop. Guess I'll have to > >> change > >> it again :) > > > > You're free to do your braces however you'd like in your own code, but > > any code submitted to Phobos or druntime needs to have the braces on > > their own line. > > > > - Jonathan M Davis > > I actually like that a language has a "default" style. Java, C# and > Python all has a default style that makes code easy to read regardless > of who wrote it (of course, python has some enforced stuff with > indentation). You can, for instance, break the style as much as you'd > like in C#, but I've yet to see a library that uses a very different style. > > But then again.. Unless it's written in an obfuscated style, it doesn't > really matter that much..
Well, you're free to follow Phobos' style too. It's entirely up to you. But bracing style is the sort of thing that's likely to vary quite a bit from programmer to programmer (especially among those with a C or C++ background). - Jonathan M Davis
