OLD | NEW |
1 \documentclass{article} | 1 \documentclass{article} |
2 \usepackage{epsfig} | 2 \usepackage{epsfig} |
3 \usepackage{dart} | 3 \usepackage{dart} |
4 \usepackage{bnf} | 4 \usepackage{bnf} |
5 \usepackage{hyperref} | 5 \usepackage{hyperref} |
6 \newcommand{\code}[1]{{\sf #1}} | 6 \newcommand{\code}[1]{{\sf #1}} |
7 \title{Dart Programming Language Specification \\ | 7 \title{Dart Programming Language Specification \\ |
8 {\large Draft Version 0.61}} | 8 {\large Draft Version 0.61}} |
9 \author{The Dart Team} | 9 \author{The Dart Team} |
10 \begin{document} | 10 \begin{document} |
(...skipping 4449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4460 It is a compile-time error if a non-constant map literal that has no explicit ty
pe arguments appears in a place where a statement is expected. | 4460 It is a compile-time error if a non-constant map literal that has no explicit ty
pe arguments appears in a place where a statement is expected. |
4461 | 4461 |
4462 \subsection{Local Variable Declaration} | 4462 \subsection{Local Variable Declaration} |
4463 \label{localVariableDeclaration} | 4463 \label{localVariableDeclaration} |
4464 | 4464 |
4465 | 4465 |
4466 A {\em variable declaration statement }declares a new local variable. | 4466 A {\em variable declaration statement }declares a new local variable. |
4467 | 4467 |
4468 \begin{grammar} | 4468 \begin{grammar} |
4469 {\bf localVariableDeclaration:} | 4469 {\bf localVariableDeclaration:} |
4470 initializedVariableDeclaration \escapegrammar{';'} | 4470 initializedVariableDeclaration {\escapegrammar';'} |
4471 . | 4471 . |
4472 \end{grammar} | 4472 \end{grammar} |
4473 | 4473 |
4474 Executing a variable declaration statement of one of the forms \VAR{} $v = e;$
, $T$ $v = e; $, \CONST{} $v = e;$, \CONST{} $T$ $v = e;$, \FINAL{} $v = e;$ o
r \FINAL{} $T$ $v = e;$ proceeds as follows: | 4474 Executing a variable declaration statement of one of the forms \VAR{} $v = e;$
, $T$ $v = e; $, \CONST{} $v = e;$, \CONST{} $T$ $v = e;$, \FINAL{} $v = e;$ o
r \FINAL{} $T$ $v = e;$ proceeds as follows: |
4475 | 4475 |
4476 The expression $e$ is evaluated to an object $o$. Then, the variable $v$ is set
to $o$. | 4476 The expression $e$ is evaluated to an object $o$. Then, the variable $v$ is set
to $o$. |
4477 | 4477 |
4478 A variable declaration statement of the form \VAR{} $v;$ is equivalent to \VAR{
} $v = \NULL{};$. A variable declaration statement of the form $T$ $v;$ is equiv
alent to $T$ $v = \NULL{};$. | 4478 A variable declaration statement of the form \VAR{} $v;$ is equivalent to \VAR{
} $v = \NULL{};$. A variable declaration statement of the form $T$ $v;$ is equiv
alent to $T$ $v = \NULL{};$. |
4479 | 4479 |
4480 \commentary{ | 4480 \commentary{ |
(...skipping 1602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6083 \item The names of compile time constant variables never use lower case letters.
If they consist of multiple words, those words are separated by underscores. Ex
amples: PI, I\_AM\_A\_CONSTANT. | 6083 \item The names of compile time constant variables never use lower case letters.
If they consist of multiple words, those words are separated by underscores. Ex
amples: PI, I\_AM\_A\_CONSTANT. |
6084 \item The names of functions (including getters, setters, methods and local or l
ibrary functions) and non-constant variables begin with a lowercase letter. If t
he name consists of multiple words, each word (except the first) begins with an
uppercase letter. No other uppercase letters are used. Examples: camlCase, dar
t4TheWorld | 6084 \item The names of functions (including getters, setters, methods and local or l
ibrary functions) and non-constant variables begin with a lowercase letter. If t
he name consists of multiple words, each word (except the first) begins with an
uppercase letter. No other uppercase letters are used. Examples: camlCase, dar
t4TheWorld |
6085 \item The names of types (including classes and type aliases) begin with an uppe
r case letter. If the name consists of multiple words, each word begins with
an uppercase letter. No other uppercase letters are used. Examples: CamlCase, D
art4TheWorld. | 6085 \item The names of types (including classes and type aliases) begin with an uppe
r case letter. If the name consists of multiple words, each word begins with
an uppercase letter. No other uppercase letters are used. Examples: CamlCase, D
art4TheWorld. |
6086 \item The names of type variables are short (preferably single letter). Examples
: T, S, K, V , E. | 6086 \item The names of type variables are short (preferably single letter). Examples
: T, S, K, V , E. |
6087 \item The names of libraries or library prefixes never use upper case letters. I
f they consist of multiple words, those words are separated by underscores. Exam
ple: my\_favorite\_library. | 6087 \item The names of libraries or library prefixes never use upper case letters. I
f they consist of multiple words, those words are separated by underscores. Exam
ple: my\_favorite\_library. |
6088 \end{itemize} | 6088 \end{itemize} |
6089 } | 6089 } |
6090 | 6090 |
6091 | 6091 |
6092 \end{document} | 6092 \end{document} |
OLD | NEW |