From acae7eccc4ce9c08586beb366999ae7d5e6c2d7b Mon Sep 17 00:00:00 2001 From: James Shubin Date: Sun, 7 Jan 2024 17:16:10 -0500 Subject: [PATCH] lang: interfaces: Expand docs on compiler constants Improve the docs to make things clearer. --- lang/interfaces/const.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lang/interfaces/const.go b/lang/interfaces/const.go index f7f73700..e92d2675 100644 --- a/lang/interfaces/const.go +++ b/lang/interfaces/const.go @@ -20,10 +20,12 @@ package interfaces const ( // ModuleSep is the character used for the module scope separation. For // example when using `fmt.printf` or `math.sin` this is the char used. + // It is also used for variable scope separation such as `$foo.bar.baz`. ModuleSep = "." // VarPrefix is the prefix character that precedes the variables - // identifier. For example, `$foo` or for a lambda, `$fn(42)`. + // identifier. For example, `$foo` or for a lambda, `$fn(42)`. It is + // also used with `ModuleSep` for scoped variables like `$foo.bar.baz`. VarPrefix = "$" // PanicResKind is the kind string used for the panic resource.