4.Overview 概觀

4 Overview

This section contains a non-normative overview of the ECMAScript language.
ECMAScript is an object-oriented programming language for performing computations and manipulating computational objects within a host environment. ECMAScript as defined here is not intended to be computationally self-sufficient; indeed, there are no provisions in this specification for input of external data or output of computed results. Instead, it is expected that the computational environment of an ECMAScript program will provide not only the objects and other facilities described in this specification but also certain environment-specific host objects, whose description and behaviour are beyond the scope of this specification except to indicate that they may provide certain properties that can be accessed and certain functions that can be called from an ECMAScript program.
 
4.概觀
這章節包含了一個非規範性的ECMAScript語言概述。
ECMAScript是一個物件導向的程式語言,可以在主機環境中進行運算與操作計算機物件。此處定義的ECMAScript並不是為了成為一個計算機的自給自足的語言,更確切的說,這份規範書並沒有提到任何關於外部資料輸入或是計算結果輸出的條款。相反的,此處定義的ECMAScript認為執行ECMAScript程式的計算機環境將不只提供此規範書定義的物件以及其他描述到的功能,還要提供某些特定環境的主機物件,除了指定能被存取的某些屬性,以及能被ECMAScript呼叫的程式外,這些主機物件的描述以及功能並不沒有在此規範書的範圍。
 
翻譯註解:
所謂的非規範性其實指的是,他偏重在描述事情,而不是明確的定義一個規範。
 
A scripting language is a programming language that is used to manipulate, customise, and automate the facilities of an existing system. In such systems, useful functionality is already available through a user interface, and the scripting language is a mechanism for exposing that functionality to program control. In this way, the existing system is said to provide a host environment of objects and facilities, which completes the capabilities of the scripting language. A scripting language is intended for use by both professional and non-professional programmers.
 
腳本描述語言是一種程式語言,用來操作、自訂義、和自動化現行系統的功能。在這樣的系統當中,有用的功能都已經可以在使用者介面當中得到,而腳本描述語言則是利用這些功能來進行程式控制。以這種方式來看,這樣已經存在的系統,就是所謂的包含物件與功能的主機環境,這樣的主機環境能完成腳本描述語言功能。腳本描述語言是為了被專業和非專業的設計師使用。
 
ECMAScript was originally designed to be a Web scripting language, providing a mechanism to enliven Web pages in browsers and to perform server computation as part of a Web-based client-server architecture. ECMAScript can provide core scripting capabilities for a variety of host environments, and therefore the core scripting language is specified in this document apart from any particular host environment.
 
ECMAScript原本是被設計成提供一種機制以活化瀏覽器網頁的網頁描述語言,以及當成基於網頁的客戶-伺服端架構的一部分來完成伺服端運算。ECMAScript能為各種伺服器環境提供核心腳本語言能力,也因此本文件所定義的核心腳本描述語言獨立於任何特定的主機環境之外。
 
Some of the facilities of ECMAScript are similar to those used in other programming languages; in particular Java, Self, and Scheme as described in:
Gosling, James, Bill Joy and Guy Steele. The Java Language Specification. Addison Wesley Publishing Co., 1996.
Ungar, David, and Smith, Randall B. Self: The Power of Simplicity. OOPSLA '87 Conference Proceedings, pp. 227–241, Orlando, FL, October 1987.
IEEE Standard for the Scheme Programming Language. IEEE Std 1178-1990.
 
某些ECMAScript的功能與其他程式語言類似,特別是JAVA,Self,與Scheme,如下所提:
Gosling, James, Bill Joy and Guy Steele. The Java Language Specification. Addison Wesley Publishing Co., 1996.
Ungar, David, and Smith, Randall B. Self: The Power of Simplicity. OOPSLA '87 Conference Proceedings, pp. 227–241, Orlando, FL, October 1987.
IEEE Standard for the Scheme Programming Language. IEEE Std 1178-1990.
 
 
 

  按個讚!~支持本站!~

FB推薦載入中