💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱@programming.dev to C Sharp@programming.devEnglish · 23 days agoC++ has scope_exit for running code at scope exit. C# says "We have scope_exit at home." - The Old New Thingdevblogs.microsoft.comexternal-linkmessage-square7fedilinkarrow-up16
arrow-up16external-linkC++ has scope_exit for running code at scope exit. C# says "We have scope_exit at home." - The Old New Thingdevblogs.microsoft.com💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱@programming.dev to C Sharp@programming.devEnglish · 23 days agomessage-square7fedilink
minus-squareMihies@programming.devlinkfedilinkarrow-up1·edit-223 days agoIDisposable is not that at all. At least not implicitly. It’s a convention, one has to call Dispose to do anything. Edit: I might have misunderstood scope_exit 🥹
IDisposable is not that at all. At least not implicitly. It’s a convention, one has to call Dispose to do anything. Edit: I might have misunderstood scope_exit 🥹