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: Mon, 10 Jan 2011 20:01:31 -0600
On Jan 10, 2011, at 7:24 PM, Doug McNutt wrote:
> At 13:12 -0600 1/10/11, Alex Zavatone wrote:
> Calling variables, i, j, or x is meaningless.
>
>
> This is way off topic anyway but. . .
>
> i, j and also k l m n are, since about 1962 when they, used alone, were directed to hardware index registers. Using them as loop indices resulted in higher speeds. As first letters in longer names they indicated use of integers.
>
> x and names that started with letters other than the ones above were floating point.
>
> And, oh yes, they had to be used as capitals because a byte was 6 bits.
>
> So perhaps you meant meaningless to AppleScript. I'll bet they still work. But I'll also bet AppleScript doesn't even try to optimize processing speed in . . .
>
> At 12:11 -0800 1/10/11, Stan Cleveland wrote:
> repeat with i from 1 to 10
> display dialog i
> set i to i + 2
> end repeat
Not at all. I prefaced this by saying that "computers are fast enough today".
Now, I've written command speed profiling code and in modern programming languages, the speed difference between i and myListIndex is meaningless, when compared to the speed of other operations.
We're not on the Apple II anymore. We have more than 64 K of memory to deal with. Variables can have names of more than one letter without speed penalties.
Wait, I retract that statement.
Variables can have names of more than one letter with no speed penalties at all.
_______________________________________________
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