Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Remove outdated stuff

...

  1. Separate inline headers: We allow putting inline functions in separate files, using the suffix -inline.h or -impl.h or .inline.h
  2. Pros: ??
  3. Cons: ??

Scoping

  1. namespaces use of anonymous namespaces are not recommended.
    1. Pros: ??
    2. Cons: naming conflicts can occur between object files
    namespaces the using namespace directive is encouraged in .cc files
    1. Pros: reduces code volume
    2. Cons: pollutes the namespace, causes conflicts, makes it more difficult to determine the type of an object

Classes

...

  1. Pros: None
  2. Cons: undesirable conversions

...

  1. Pros: easier use with the STL
  2. Cons: implicit copying of objects in C++ is a rich source of bugs and of performance problems

...

Functions

  1. default function arguments we use default function arguments
    1. Pros: clean syntax, reduced code volumne
    2. Cons: function pointers are confusing in the presence of default arguments
    casting we use cast formats such as int x = (int) y;
    1. Pros: clean syntax
    2. Cons: ambiguous operator

Formatting

  1. Line Length We use 90 character line lengths
  2. TODO Comments we do not include the name in the TODO comment
  3. Function Declaration we line wrap differently than google, for example do:

...