@Mek101
In C that would probably be okay though: no exceptions (on programming language level) and no destructors 🤔

@m0xee You would still leak resources though, as calls to close and all can be spread through the code

Follow

@Mek101
Yeah, true in many cases — could probably be mitigated with proper design. I mean at least something like exception within exception handler leading to runtime abort won't happen, which, again, depending on design, might be okay or a total disaster 😂

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml