Re: How to do a goto with Applescript?
Re: How to do a goto with Applescript?
- Subject: Re: How to do a goto with Applescript?
- From: Alex Zavatone <email@hidden>
- Date: Sun, 02 Jan 2011 15:17:29 -0600
On Jan 2, 2011, at 2:35 PM, Skeeve wrote: I often use GOTO (in languages which have it) to jump to the end of a long list.
Often it's really helpful to avoid longish, deep nested if then elsif "trees"
I strongly recommend that you NEVER do this. This is where spaghetti code comes from.
Break everything up into classes and start organizing your code.
Too may times, I have had to go through 13 and 15 page case statements to figure out what the hell was going on.
One time I was actually able to rewrite the code and reduce complexity and debugging time significantly.
Never ever do this. It is the route to fail.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden