Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

Scope of a top-level let declaration #1041

Answered by seh
seh asked this question in General
Jun 4, 2021 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

Based on experience with similar constructs in other languages, I find the CUE tool's file-scoped enforcement to make more sense, because let declarations seem like lexical elements to me, intended to be confined as locally as possible, to only where referring expressions can "see" the declaration. Should we tighten the specification's language accordingly?

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@myitcv
Comment options

@seh
Comment options

@myitcv
Comment options

@seh
Comment options

@myitcv
Comment options

Answer selected by myitcv
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants