💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱 to C SharpEnglish · 15 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-square7linkfedilinkarrow-up17arrow-down10
arrow-up17arrow-down1external-linkC++ has scope_exit for running code at scope exit. C# says "We have scope_exit at home." - The Old New Thingdevblogs.microsoft.com💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱 to C SharpEnglish · 15 days agomessage-square7linkfedilink
minus-squareMihieslinkfedilinkarrow-up1·15 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 🥹