On 07/12/2014 09:01 PM, Danyal Zia wrote:
Hi,

I noticed that in Andrei's talks and his book, he used braces on the
same line of delcaration,

That's because they do not waste that much space that way.

however Phobos and other D libraries I know
use braces on their own line. Now I'm in a position where I need to take
decision on coding style of my library and I get accustomed to use
braces on same line but I'm worried if that would make my library less
readable to other D users.
...

I think Phobos is often painful to read exactly because trivial functionality tends to span multiple pages.

Should I worry about it?

IMO No.

Or is that's just a debatable style that won't
really matter if it's persistent throughout library?


Yes.

Thanks

Reply via email to