11 ms·
People are lazy, though. I think if errors can't take payloads, it's inevitable you'll end up with many libraries that don't return error payload information wh
by dilap 6y ago
People are lazy, though. I think if errors can't take payloads, it's inevitable you'll end up with many libraries that don't return error payload information when you wish they did. This will trickle out into software using the libraries, where the end-user will get errors that don't include as much useful info as you'd like. So to my mind, not supporting error payloads in a first class way is contrary to Zig's goal of enabling perfect software. :-)