2 ms·
One thing to note: In go, defer appends a function call to a heap allocated list that gets run at the end of a function. In zig, defer (and errdefer) do not a
by AndyKelley 8y ago
One thing to note:
In go, defer appends a function call to a heap allocated list that gets run at the end of a function.
In zig, defer (and errdefer) do not allocate memory, and get run at scope exit.