Re:Zig 0.8.0 Release Notes
by PoignardAzur on Saturday June 05, 2021 @06:33AM
(#27403796)
I wonder if Zig could add a "mustbedestroyed" annotation to a type, that doesn't actually add RAII-style invisible code, but forces developers do add 'defer' instructions to code that creates instances of the type.
EDIT: Aaand shockingly, I'm not the first to come up with this idea: https://github.com/ziglang/zig/issues/782