| ▲ | scuff3d 3 hours ago | |||||||
Continues to be a point of annoyance that Zig doesn't properly support payloads in errors. | ||||||||
| ▲ | smlavine 2 hours ago | parent | next [-] | |||||||
I thought so too at first, coming from a language (Hare) where they are very easy and common, but the Diagnostics pattern isn't that bad once you expect it. Various examples: https://ziggit.dev/search?q=Diagnostics | ||||||||
| ||||||||
| ▲ | loeg 2 hours ago | parent | prev [-] | |||||||
Right. It's one thing to build the equivalent of Result into the language -- great. It's another to make it only support simple enum variants and not be extensible. | ||||||||