[Mono-list] Coding Standards, etc.
Miguel de Icaza
miguel@ximian.com
11 Oct 2003 11:03:19 -0400
Hello,
> Has anyone published any documentation on what coding standards Mono
> source should follow? I am mainly concerned about the use of
> Hungarian notation and the placement of brackets in the source. There
> are a lot of inconsistencies in the CVS source I=FFve inspected.
Some other people have already pointed you to the Mono coding styles in
/mcs/class/README. It covers the braces.
We despise hungarian notation, please avoid it. If somebody has used
that, we will clean it up some day (the reason being: we need the CVS
history more than changing the format, so we rather preserve CVS history
now than changing the code).
We prefer internal variable names to use:
class MyClass {
string my_var;
int my_other_var;
string MyVar {
get { return my_var; }=20
}
}
Miguel