this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

doc/ref/spec.md: clarify scope of top-level let ID

The specification's "Declarations and scope" section didn't address
top-level let identifiers, leaving open the question as to whether
they're scoped to the containing package or file. The CUE tool treats
such identifiers' scope as the containing file. Augment the
specification to state this scope explicitly.

Fixes #1041.

Change-Id: I3f75fe959112f6c0685896451159d985b9ad365c
Signed-off-by: Steven E. Harris <seh@panix.com>
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/531457
Unity-Result: CUEcueckoo <cueckoo@cuelang.org>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Marcel van Lohuizen <mpvl@gmail.com>

authored by

Steven E. Harris and committed by
Marcel van Lohuizen
2fe5251e 556f57f5

+2
+2
doc/ref/spec.md
··· 1688 1688 declared at top level (outside any struct literal) is the package block. 1689 1689 1. The scope of an identifier denoting an alias 1690 1690 declared at top level (outside any struct literal) is the file block. 1691 + 1. The scope of a let identifier 1692 + declared at top level (outside any struct literal) is the file block. 1691 1693 1. The scope of the package name of an imported package is the file block of the 1692 1694 file containing the import declaration. 1693 1695 1. The scope of a field, alias or let identifier declared inside a struct