3 ms·
It looks like check can be used in calling chains. That is, if F is string to string,error, and G is empty to string,error then s := check F(check G()) eit
by JulianMorrison 8y ago
It looks like check can be used in calling chains.
That is, if F is string to string,error, and G is empty to string,error then
s := check F(check G())
either assigns a string to s, or calls the handler.
- barsonme 8y agoI hope this doesn't make it in. I'd hate to see the inevitable check (check A(check B(check C( ... ))))
- JulianMorrison 8y agoI wouldn't. It's very explicitly saying, this is a series of calls that can fail.