News for hackers. Stuff that matters.
Re:Adding Modules to C in 10 Lines of Code [pdf] by Shadonototra on Monday June 27, 2022 @04:38PM (#31900471)
D has defer

    scope(exit):
    scope(failure):
    scope(success):
https://tour.dlang.org/tour/en/gems/scope-guards

You can do RAII with D too, it's your choice, based on your use case

There are no comments on this comment yet.