Re:Dealing with Out-of-Memory Conditions in Rust
by dralley on Saturday August 14, 2021 @10:50PM
(#28185878)
The zig approach seems really well suited to low-level libraries where you really need to handle these errors (and custom allocators, etc.) but it's kind of annoying for general purpose programs.
Zig has a similar approach that is pretty cool. I don't know of any other language that let's you handle it like this https://ziglang.org/documentation/0.8.0/#Heap-Allocation-Fai...