Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Myrddin Programming Language. Parent comment
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.
There are no comments on this comment yet.
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.