Re: uneditable [OT]
Re: uneditable [OT]
- Subject: Re: uneditable [OT]
- From: Barry Wainwright <email@hidden>
- Date: Thu, 02 May 2013 23:43:53 +0100
On 2 May 2013, at 15:00, Alex Zavatone < email@hidden> wrote: It would be SOOO nice, now that we have passed the mid '90s, if AppleScript would actually be able to handle something that commonplace and if we could replace the "to" in an assignment with =.
Noooo! Please don't do that. It is too ambiguous - are you using it as a assignment, or an equality test?
Consider:
if a = 10 then beep
At the moment, that is clear and unambiguous - the equality sign must be an equality test. If what you suggest happens, then how would applescript know whether it was an assignment or a test? (apart from the fact that assignments cannot, at the moment, be part of a function, even though they return a result).
If they have to change things, I hope they use, like some other languages, a double equality sign:
a==10
|
_______________________________________________
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