Re: can't get it to work
Re: can't get it to work
- Subject: Re: can't get it to work
- From: Andrew Oliver <email@hidden>
- Date: Wed, 09 Apr 2003 16:09:01 -0700
On 4/9/03 1:02 PM, "John Delacour" <email@hidden> wrote:
>
theResult is a
>
very bad label for a variable. No variable should begin with "the"
>
and and the name of the variable should bear some close semantic
>
relationship to its contents. (the result) has a special meaning
While I understand the special relevance of "the result" in AppleScript, I
don't understand your first statement.
Do you have any basis for not using 'the' as a prefix for a variable name,
other than your own personal coding style/preference?
As far as I can see, the only reason would be to avoid confusion with
variable names and AppleScript's ability to ignore definite articles in
scripts, e.g. "theSelection" (a variable name, presumably related in some
way to a selected item) vs. "the selection" (AppleScript command that
returns the selection)
While an arguably admirable trait, this appears to be more personal
preference than absolute law, in which case you should preface your
statement with an appropriate disclaimer.
In my opinion, syntax highlighting adequately differentiates the two and
makes it a non-issue.
There are numerous examples of scripts that use theVariableName form without
problems, including many in Bruce Perry's AppleScript in a Nutshell, IMHO
currently the best/most complete reference book on AppleScript available.
Andrew
:)
_______________________________________________
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.