Comment Comment by WalterBright > I would classify D's scope exit/failure/success as RAII actually, even if D uses a GC.D's scope exit/failure/success is built on top of RAII and has nothing to do with the GC.> I would say exceptions should be the main mechanism in normal circumstances and for expected errors you csn use error/result types.Come to DConf (or watch the live stream) and I hope I can change your mind, or at least challenge your conclusions! parent WalterBright 3 months ago
D's scope exit/failure/success is built on top of RAII and has nothing to do with the GC.
> I would say exceptions should be the main mechanism in normal circumstances and for expected errors you csn use error/result types.
Come to DConf (or watch the live stream) and I hope I can change your mind, or at least challenge your conclusions!