C++ style question

Doug dougsweetser at gmail.com
Sat Dec 23 08:58:45 EST 2006


Hello Jerry:

For me, it would depend on the context.  If a collection of C++
programs was dominated by classes, I'd write a class (particularly if
other related functions might be written later).  If related programs
were written by C programmers, and there were already a collection of
functions, I'd add my function into the mix.

As you know, the real issue is writing code that can be understood by
someone else two years from now who cannot find you.  You don't want
to be the one class in a collection of functions, nor the one function
in a collection of classes.

doug

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the Discuss mailing list