3 ms·
I think forgetting to assign a variable to the return value and ignoring the return value are two different things. Zig regards forgetting to assign a variable
by infamouscow 4y ago
I think forgetting to assign a variable to the return value and ignoring the return value are two different things.
Zig regards forgetting to assign a variable to a return value as a compile time error because there's an entire class of bugs that stem from it, e.g. resource leaks.