3 ms·
I mean, ask the C++ community. They've had exceptions forever, but a large chunk of them forbid exceptions in their codebases. I think there's a pretty good ru
by oconnor663 4y ago
I mean, ask the C++ community. They've had exceptions forever, but a large chunk of them forbid exceptions in their codebases.
I think there's a pretty good rule of thumb in modern systems-ish language design: If Go and Rust and Zig all do a certain thing, that thing is probably a great idea. These languages have very different priorities, but often they overlap.
- ngrilly 4y agoZig, unlike Go and Rust, provides an error return trace showing how the error bubbled up. This is a really interesting idea. https://ziglang.org/documentation/master/#Error-Return-Traces https://ziglang.org/documentation/master/#Error-Return-Trace...
- tbillington 4y agogo and rust both have this, though opt in at each location you're adding context.