News for hackers. Stuff that matters.
Re:I like Odin by stjohnswarts on Sunday August 28, 2022 @02:11PM (#32630556)
I agree RAII at a minimum should be available, but why not just use c++ at that point? I'll just go to something like zig or rust that is established and has thousands of libraries available.
Re:I like Odin by gingerBill on Sunday August 28, 2022 @02:56PM (#32630958)
I recommend reading my reply to another comment regarding RAII: https://news.ycombinator.com/item?id=32629951

Also the article itself demonstrates different approaches to achieve behaviour similar to RAII through the `defer` statement and `deferred_*` attributes.