• 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: First-class procedures in AS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: First-class procedures in AS


  • Subject: Re: First-class procedures in AS
  • From: Walter Ian Kaye <email@hidden>
  • Date: Wed, 17 Dec 2003 20:32:23 -0800

At 09:42p -0500 12/17/2003, Jim Witte didst inscribe upon an electronic papyrus:

Does Applescript allow you to compile procedures at runtime and treat them as first-class objects? I thought an interesting (if seemingly useless, except perhaps as a CS independent study) project would be to try to implement a subset of Scheme in AppleScript.. I'd probably have to skip "native" continuations as I'm sure they're not supported while running AS code, but if I broke AS code down into steps in an interpreter, I could implement them in that context. (Of course, I wouldn't *need* first-class functions, but they would be nice)

You can certainly create objects, since AS has OOP support; however they won't syntax-color like commands which have terminologies defined, and you can't set up optional parameters. So that's probably not "first-class"...


-boo
_______________________________________________
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.

References: 
 >First-class procedures in AS (From: Jim Witte <email@hidden>)

  • Prev by Date: First-class procedures in AS
  • Next by Date: Re: How to prevent Classic from starting?
  • Previous by thread: First-class procedures in AS
  • Next by thread: Re: First-class procedures in AS
  • Index(es):
    • Date
    • Thread