mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-27 22:02:33 +01:00
Provide an initial rough structure for the specification so we can add things as they are decided. Split the specification into a language and a library section. In the language section, use one file per broad area of functionality. Divide the language up based on the intended layering of the language design.
871 B
871 B
Names
TODO
Names
-
A name is an identifier. Two names are the same if they comprise the same sequence of Unicode code points.
TODO: Normalization?
Scopes
-
A scope is one of:
- The top level in a source file.
- A pattern scope.
- A block scope.
- A type definition.
-
Every construct that declares a name binds the name to the declared entity within the innermost enclosing scope.
Unqualified name lookup
- Unqualified name lookup associates a name with an entity. The associated entity is the entity to which the name is bound in the innermost enclosing scope in which the name is bound.