Against the use of "if" statments. Is there always a "clean" alternative?

Posted by Zubair on Stack Overflow See other posts from Stack Overflow or by Zubair
Published on 2010-03-22T14:06:06Z Indexed on 2010/03/22 14:11 UTC
Read the original article Hit count: 129

Filed under:

I have recently seen alot of activity saying that "if" statements should be banned. However in some of the alternatives people are just doing an "if" statement but discussed as a "case" statement, or as an overloaded function in pattern matching languages. Is it really such a clean solution to replace a well understood concept with a more obscure one?

© Stack Overflow or respective owner

Related posts about if