Better branding of -betterC

Jacob Carlborg doob at
Mon Nov 2 13:20:58 UTC 2020

On Sunday, 1 November 2020 at 16:34:49 UTC, Ola Fosheim Grøstad 

> I haven't used Zig, but as far as I can tell you have to test 
> right after the function call?

Actually, I thought that as well. But I just tried it and you 
don't have to call a function which can return an error with 
`try`. If you don't, then you just get back an error union (a 
type which consist of the return type and the error type). Then 
you can treat it like any other value. But it's not exactly like 
with exceptions.

/Jacob Carlborg

More information about the Digitalmars-d mailing list