functions inside functions (closures) · Issue #229 · ziglang/zig (original) (raw)
It makes sense for there to be a function inside a function, as long as it doesn't require allocating any memory, and the function is only callable while the outer function is still running.