News for hackers. Stuff that matters.
Re:Zig: a system language which prioritizes optimality, safe... by Matthias247 on Monday August 29, 2016 @11:54AM (#12382742)
Error handling mostly with error codes seems like an OK compromise for me since it doesn't require any dynamic memory allocation (like Gos error interfaces). I guess one would use some custom return type or a GetLastError equivalent if more details are required.

However I'm not sure if purely compiler assigned error numbers will work out for a systems language. Of course it works when you build the whole application, but if you build only a part of it (a library, an application that (dynamically) links against a library, ..., where do you get the information from which error codes are already occupied by them?

There are no comments on this comment yet.