I hate class destructors with a burning passion

Walter Bright newshound2 at digitalmars.com
Wed Jun 9 21:40:45 UTC 2021


On 6/8/2021 11:58 PM, Max Samukha wrote:
> Placing (part of) constructor logic into a separate function that may throw, and 
> pretending that a partially constructed state is a valid state - why do you 
> think it is better?

As I remarked, it makes the code easier to reason about.


More information about the Digitalmars-d mailing list