3 ms·
Stack overflow, which is a type of allocation failure, still aborts in Zig, so it's not that simple.
by pcwalton 2y ago
Stack overflow, which is a type of allocation failure, still aborts in Zig, so it's not that simple.
- anonymoushn 2y agoandrewrk sees this as a failure but doesn't yet have a solution. It seems difficult to provide users with features they want, such as recursion and C interop, while also statically proving the stack is sufficiently small. In programs that don't have stack overflows, it's nice to be able to handle allocation failures though :)