On Saturday, 12 July 2014 at 19:01:56 UTC, Danyal Zia wrote:
Hi,
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. 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.
Should I worry about it?
no
Or is that's just a debatable style that won't really matter if
it's persistent throughout library?
yes (I read that "if" as "as long as")
There is another stylistic choice which I do find confusing:
capitalized identifiers for non-types, e.g. variables and
functions. Please don't do that.