Parenthesis are used without defining their use and meaning in the Nix language
Opened this issue · 0 comments
WayneSherman commented
Parenthesis ( ) are used in the example here:
Line 289 in 1cf10d3
But their syntactical use and meaning in the Nix language has not been defined.
In the Nix language, parentheses are primarily used to group expressions, control the order of evaluation, and encapsulate language elements to disambiguate their boundaries within larger expressions.
[Edit] This usage does not fall into my previous definition:
Line 344 in 1cf10d3
Should a statement about parenthesis include the syntax that can be used for "inherit"?
Also ( ) can be used to control the scope of the "with" statement:
Line 363 in 1cf10d3
Can ( ) be used to control the scope of variables in general? (visibility / lifetime scope?)