# Dart 编程语言规范

> 一些常见的 Dart 编程语言里的规范。



Use this page to find the formal Dart language specification.
For a gentler introduction to Dart, see the
[language tour](/language).

使用此页面查找正式的 Dart 语言规范。 有关 Dart 的一般性介绍，
请参阅[语言概览](/language)。

## Dart 3

The Dart 3 language specification is in progress and
not yet up to date for the current release and language features.
You can find the in-progress specification in PDF format:

Dart 3 的语言规范仍然在制定中，
尚未更新当前版本和语言特性。
你可以查阅正在制定中的规范 PDF 文件：

* [Latest, in-progress specification][latest draft]
  (produced from a [LaTeX file][])

  [最新的制定中的规范][latest draft]（由 [LaTeX 文件][LaTeX file] 导出）

[latest draft]: https://dart.cn/to/spec-draft
[LaTeX file]: https://github.com/dart-lang/language/blob/main/specification/dartLangSpec.tex

New language features are typically described using
informal language feature specifications in the [dart-lang/language][] repo:

在 [dart-lang/language][] 仓库中通常使用非正式语言功能规范来描述新的语言功能：

* [Accepted informal proposals][]

  [已接受的非正式提案][Accepted informal proposals]

* [Drafts of potential features][]

  [潜在的功能草案][Drafts of potential features]

Over time, these feature specifications will be incorporated into
the official specification.

随着时间的推移，这些功能规范将被纳入正式规范中。

[dart-lang/language]: https://github.com/dart-lang/language
[Accepted informal proposals]: https://github.com/dart-lang/language/tree/main/accepted
[Drafts of potential features]: https://github.com/dart-lang/language/tree/main/working

:::version-note

Dart 3 changed the Dart language in a few ways,
primarily requiring [sound null safety](/null-safety).

Dart 3 修改了一些内容，主要是要求使用 [健全的空安全](/null-safety)。

:::

## Dart 2

The Dart 2 language specification is available in PDF format:

正式的 Dart 2 规范以 PDF 格式提供：

  * [Formal specification (Dart 2.10)][2-10 formal spec]

    [正式的规范文档 (Dart 2.10 版本)][2-10 formal spec]

[2-10 formal spec]: /resources/language/spec/versions/DartLangSpec-v2.10.pdf

For information on Dart versions 2.12 and later,
which have support for [null safety](/null-safety),
check out the in-progress [Dart 3 specification](#dart-3).

对于 Dart 2.12 及之后支持了 [空安全](/null-safety) 的版本，
请查阅正在制定的 [Dart 3 语言规范](#dart-3)。

## Dart 1.x

The formal Dart 1.x language specification is available from
the Ecma International website:

正式的 Dart 1.x 语言规范可从 Ecma International 网站获得：

* <a href="https://www.ecma-international.org/publications-and-standards/standards/ecma-408/"
   target="_blank" rel="noopener">Dart Programming Language Specification, 4<sup>th</sup> Edition</a>

  <a href="http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-408.pdf"
   target="_blank" rel="noopener">Dart 编程语言规范 第 4 版</a>


