M
Marco
One of the things I like about C++ is that it doesn't force you to
create fake "objects" in the OO sense. We had a debate at the office
about the "right" way to encapsulate related utility functions (such
as additional math functions). These would be pure functions with no
state.
1) Create a class with all static functions
2) Use a named namespace
Please site articles or books if possible.
create fake "objects" in the OO sense. We had a debate at the office
about the "right" way to encapsulate related utility functions (such
as additional math functions). These would be pure functions with no
state.
1) Create a class with all static functions
2) Use a named namespace
Please site articles or books if possible.