News for hackers. Stuff that matters.
Re:Why is Zig so Cool? by cornstalks on Friday November 07, 2025 @10:53PM (#45853991)
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.
Re:Why is Zig so Cool? by throwaway2037 on Saturday November 08, 2025 @03:11AM (#45855029)

    > 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.
Re:Why is Zig so Cool? by dlisboa on Saturday November 08, 2025 @07:29AM (#45856194)
Go 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”.

Re:Why is Zig so Cool? by sneakinsnake on Saturday November 08, 2025 @10:08AM (#45857121)
+1
Re:Why is Zig so Cool? by sgt on Saturday November 08, 2025 @01:03PM (#45858604)
When will we see Zig 1.0?