Re: Problems with the InstallationCheck script
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com On Dec 3, 2007, at 6:28 PM, Peter Bierman wrote: JavaScript (like all languages) certainly has quirks. -pmb _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... At 9:58 PM -0800 12/3/07, Nathan Duran wrote: Furthermore, this isn't JavaScript + DOM like in a web browser. There are no DOM methods available in the installer's JavaScript sandbox. Instead, there are a small number of utility functions available under the global 'system' object. I understand the distinction, the language's peculiar notions of scope and closures-over-classes flavor of OOP are just not something I generally expect (or want) to have to deal with any more often than I absolutely have to, and it seemed an odd choice unless security driven. I'd be pretty frightened if someone needed to use OOP in their distribution script. :-) The JavaScript snippets run by the installer are supposed to be very short functions that inspect some properties of the system, packages, or user's selections, and typically return true or false. I hope that the C like syntax plus native string support makes doing that as painless as possible for our developers. This email sent to site_archiver@lists.apple.com
participants (1)
-
Peter Bierman