What does it mean to have a flat scope?

64 Views Asked by At

In Kapacitor documentation, there is a sentence that reads:

Each script has a flat scope and each variable in the scope can reference a literal value, such as a string, an integer or a float value, or a node instance with methods that can then be called.

I have never heard of a flat scope, what does that mean? I tried googling for that term but I cannot find anything that explains it.

1

There are 1 best solutions below

1
Vivin On

Scopes in Kapacitor is similar to the scope in JS or PowerShell

References Scopes in PowerShell Scope in JavaScript