• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: uneditable [OT]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

-- 
Barry 
 _______________________________________________
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

  • Follow-Ups:
    • Re: uneditable [OT]
      • From: Alex Zavatone <email@hidden>
    • Re: uneditable [OT]
      • From: Christopher Stone <email@hidden>
References: 
 >Re: uneditable [OT] (From: Marion Dickten <email@hidden>)
 >Re: uneditable [OT] (From: 2551phill <email@hidden>)
 >Re: uneditable [OT] (From: 2551phill <email@hidden>)
 >Re: uneditable [OT] (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: evalhate without parsing?
  • Next by Date: Problems with Sound Studio 3
  • Previous by thread: Re: uneditable [OT]
  • Next by thread: Re: uneditable [OT]
  • Index(es):
    • Date
    • Thread