Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Tagged as

Go to top

The goto-less goto!

, 31 Jan 2011
It is much easier (and cleaner) to test for success than to test for failure.Viz:if ( condition1 // Note: Test for success, not for fail && condition2 // Will be short-circuited if condition1 fails && condition3 // Will be short-circuited if condition1 or condition 2...

Statistics


License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

jsc42

United Kingdom United Kingdom
No Biography provided

| Advertise | Privacy | Mobile
Web01 | 2.8.140926.1 | Last Updated 31 Jan 2011
Article Copyright 2011 by jsc42
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid