Open pedropark99 opened 1 month ago
The Go language have a defer keyword. However, the Go defer is different than Zig defer. Because Go defer is "move expression to function exit", while Zig defer is "move expression to current scope exit".
defer
This difference have a slightly different effect.
https://go.dev/tour/flowcontrol/12
The Go language have a
defer
keyword. However, the Godefer
is different than Zigdefer
. Because Godefer
is "move expression to function exit", while Zigdefer
is "move expression to current scope exit".This difference have a slightly different effect.
https://go.dev/tour/flowcontrol/12