![]() Pretty simple – doSomething() is executed only if someBoolVar is true. ![]() It has a lot of examples with single line (non-curly bracket wrapped) ifs, and then this Apple's SSL goto bug came along. I was watching this presentation of Kevlin Henney about Structured Programming – it talks that it's good to use if and else if and fast returns and gotos are bad. I've always said – using single line ifs is dangerous, because a junior (or even a seasoned) developer might make a mistake and add an extra line of code which will not be executed in the if block.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |