3 ms·
> shitty code Still, I have never understood why anyone would want to write if (success == true) instead of if (success)
by Koshkin 5y ago
> shitty code
Still, I have never understood why anyone would want to write
if (success == true)
instead of
if (success)
- yakshaving_jgt 5y agoMaybe both of those examples aren't great? Maybe you want something like this? case result of Error e -> -- some error handling code Ok a -> -- the happy path