Item 42: Don’t give away your internals… ;-)

Dear all

C++ Coding Standards by Herb  Sutter and Andrei Alexandrescu have this important guideline…

Much of our code seems to violate this… ( I think we briefly discussed this ). I always thought this a major design concern in our code.

There is a lot of scope for removing feature envy too…

Here is the patch and a general idea….

— cheers atul

Attached Files:

Would you like to post a relpy?


This post starts a thread.
Follow-ups:
Re: Item 42: Don’t give away your internals… ;-)
Hi Atul, I happen to have a copy of C++ Coding Style and looked at Item 42. The summary says: “Don't volunteer too much: Avoid returning handles to internal data managed (more...)