5 ms·
People are working on this. std.zon is generally considered to be a good example of how to handle errors and diagnostics, though it's an area of active explorat
by cornstalks 11mo ago
People are working on this. std.zon is generally considered to be a good example of how to handle errors and diagnostics, though it's an area of active exploration. The plan is to eventually collect all the good patterns people have come up with and (1) publish them in a collection, and (2) update std to actually use them.
- throwaway2037 11mo ago> how to handle errors and diagnostics, though it's an area of active exploration I am flabbergasted and exasperated by this sentiment. Zig is over 9 years old at this point. This feels this same kind of circular arguments from Golang "defenders" about generics and error handling.
- dlisboa 11mo agoGo gets a lot of flack for getting some things wrong but it was a stable and productive language within a couple of years. If you look at the current Zig website the hello world example doesn’t compile because they changed the IO interface. Something as simple as writing to the console. It’s easier to get things right if you have no issues breaking backward compatibility for a decade. It feels it’ll be well over 10 years before Zig is “1.0”.
- sneakinsnake 11mo ago+1
- sgt 11mo agoWhen will we see Zig 1.0?