4 ms·
I'd say `if err != nil {}` all the time is an awful lot of cognitive load. Heck, just `nil` turns everything into a minefield. Functional programming construct
by floatboth 7y ago
I'd say `if err != nil {}` all the time is an awful lot of cognitive load. Heck, just `nil` turns everything into a minefield.
Functional programming constructs rarely add complexity, they are excellent tools for handling and reducing it.
- api 7y ago> is an awful lot of cognitive load. I disagree. It's a lot of text, but cognitively it's trivial to understand. A more terse language construct that moves logic around requires more thought to comprehend even if it takes up less space on the screen. Computers are fast. Screens are big. Our brains are overwhelmed and limited.