logoalt Hacker News

SuperV1234yesterday at 11:15 PM1 replyview on HN

Zig doesn't even have RAII...


Replies

reactordevtoday at 12:44 AM

which is a good thing. C++'s RAII is magic-sauce that does a lot for you when you can simply use `defer` in zig. A constructor is just a function call. A destructor is just a function call.

show 4 replies