Re: Strip characters without recursive loop
Re: Strip characters without recursive loop
- Subject: Re: Strip characters without recursive loop
- From: Nigel Garvey <email@hidden>
- Date: Wed, 20 Aug 2003 08:07:44 +0100
kai wrote on Tue, 19 Aug 2003 23:41:56 +0100:
>
on Wed, 20 Aug 2003 07:24:39 +1000, Duncan Cowan wrote:
>
>
> However I am confused by John Delacore's response:
>
>
>
>> A perfect example of why NEVER to use "the..." at the beginning of a
>
>> variable name.
>
>
>
> I have quite a few scripts lying around that use "the..." at the start of
>
> the variable name....
>
> does this cause conflict with some additions?
>
>
Although you were using pseudo-code, I believe John was referring to a typo
>
in your original - caused by our natural reflex to type a space after the
>
word 'the':
>
>
> set theString to "1234-56abc"
>
^^^^^^^^^
>
> set theResult to characters of the string whose kind is integer
>
^^^^^^^^^^
Another obvious no-no is:
set sausageList to {"Frankfurter", "chipolata", "veggie", "kielbasa"}
set the end of the sausage list to "banger"
--> compilation error
... which is a perfect example of why you should NEVER use "sausage..."
at the beginning of a variable name.
Don't worry too much when people use nonsequiturs and bogus practical
arguments in an effort to impose their own stylistic opinions. There's no
law against "the..." in AppleScript.
NG
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.