3 ms·
Go requires everything to have a zero value. That's in direct conflict with how Result works; there's no suitable zero value for a Result.
by yencabulator 3y ago
Go requires everything to have a zero value. That's in direct conflict with how Result works; there's no suitable zero value for a Result.
- baq 3y agoYou can define one at the language level, e.g. Error(“not initialized“). Does it make sense? Perhaps not. Would it work? Perhaps.