Re:Evil Coding Incantations
by aisofteng on Tuesday December 26, 2017 @01:41AM
(#16007503)
This has never been a problem for me and I've never heard of it being a problem for anyone else.
[ Parent
| on HN ]
Success being false is definitely an odd pattern to me. I know I’m not the only one tripped up by it (‘canWrite()’ should return true on success...except if you want to return an error code by value). This is sort of fixed with C++ ‘enum class’, but obviously this isn’t always possible to use.