News for hackers. Stuff that matters.
Re:Why is Zig so Cool? by Xss3 on Saturday November 08, 2025 @11:34AM (#45857930)
Id rather have data in a generic error type than no data in a specific error type.

How useful is a file not found error type without data (the filename) when the program is looking for 50 files? Not very.

How useful is a generic error type with '{filename} not found' as generic string data packed in? Quite.

There are no comments on this comment yet.