3 ms·
I think you are talking about bare returns, which are somewhat orthogonal to named return values. You can use non-bare returns with named return values, just m
by nickcw 9y ago
I think you are talking about bare returns, which are somewhat orthogonal to named return values.
You can use non-bare returns with named return values, just mention the names in the return statement. This compiles to the same code as the bare return.
I'm a bit ambivalent about bare returns, but named return values are useful, especially in the presence of defer statements.