[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] functions and variables



On Thu, 4 Oct 2001, H�kan Bystr�m wrote:

> Sorry for this short disturbance in the archive, but I do feel the lack of a
> coding style document for ns. :-)

I'd settle for something that:

- laid out indentation, comment and {} coddling styles for new
  C++/OTcl code
  (cleanup of existing code is hopeless, and its more important 
   that changes to that match local style; would be nice to see it 
   encouraged for major additions)
- explained the underline_ and class naming conventions
- described and encouraged use of debug_ functionality
- discouraged use of #define in favour of either const, class or
  bound variables where appropriate
- insisted on bound variables being named consistently in C++/Tcl
- discussed what should be sent to stdout and stderr.
- laid out good rules for tracefile formats.
- pointed out that templates are still considered bad thanks
  to creaky compilers...

what else is there? what have I missed?

L.

<[email protected]>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>