Re:Rule of Zero (C++)
by evincarofautumn on Friday November 23, 2012 @08:44PM
(#4824285)
I disagree. “unique_ptr” and “shared_ptr” both model very simple ownership policies, yet there is still value in separating them from the objects whose lifetimes they manage. The value is in their composability—a programmer can rely on “unique_ptr” to do the right thing automatically, in a manner enforced by the type system. When writing C++ code, I spend an irritating proportion of my time navigating the minefield—it’s well worthwhile to encapsulate some of those details.
[ Parent
| on HN ]
There are no comments on this comment yet.