Post 10 made on Monday March 23, 2009 at 04:57 |
Rusty Fobe Long Time Member |
Joined: Posts: | December 2008 47 |
|
|
An APL a day keeps the doctor away! It was fun to riminisce about the goodies. I'm sorry to have disrupted the thread by adding a goto note.
Going back to the original question how to escape from nested if's. What have we learned here?
You can escape from nested if by using:
- switch (with break & default) instead of complex if - try 'n catch - throw - explicit returns in a separate decision function - labeled breaks
In what specific cases are labeled breaks worth a recommendation above other escape methods? Any comments on using explicit returns?
|
|
|