Hacker News new | ask | show | jobs
by pakl 3455 days ago
I believe Objective C's @property declarations brings some level of what you describe to C/C++. They generate the boilerplate for you.

E.g., @property (readonly) NSString* myName;