News for hackers. Stuff that matters.
Re:Anti-If: The missing patterns (2016) by emsy on Wednesday June 27, 2018 @05:55AM (#17406943)
If you really think it doesn’t serve any purpose this means you should always use if and never the proposed constructs. This is clearly wrong and I’d recommend you rethink your position.
Re:Anti-If: The missing patterns (2016) by sverhagen on Wednesday June 27, 2018 @06:05AM (#17406990)
I don't think the argument is that the constructs are useless. The argument is that it's useless (not good advice) to use them if it is only for the purpose of avoiding if statements.