Zig NEWS

Discussion on: Sneaky Error Payloads

Collapse
 
ityonemo profile image
Isaac Yonemoto • Edited

You're checking the out_error for nullity every time you call the function.

Having said that, the optional parameter works nicely too, and (this is a matter of taste, I suppose) easier to read in the case you don't have other parameter options.