Phobos classes member declaration order

Andrej Mitrovic andrej.mitrovich at gmail.com
Fri May 13 14:57:01 PDT 2011


I put my private vars at the bottom as well. The reasoning being that
whoever reads the class (well, usually me) usually wants to know about
the public interface and accessible variables first. The private stuff
is for the class implementer to worry about, that's the way I look at
it. As for searchability? I hit CTRL+END and there's all my variables.
Or I could select an opening brace and do a similar action like VIM's
brace matching.


More information about the Digitalmars-d mailing list