Quote:Question: In what scenario would you prefer variables to be announced at the beginning of a function?
Declare function arguments at the top of the function and declare local variables as close to the first usage place, as possible. Thus variable is created in the context of its usage.
Quote:!#VA(x:y) (y:y) (z:y);
These variables can be created on the fly on the first usage:
HE:P?(x:y)/...
We can move
to instructions after declarations. This is a one time operation.
!#VRi^dark_enabledForAi^:F(FALSE)/(TRUE);
...
=>
To my mind, getting two parameters can be joined in the same command and still be readable. Like get isAi and team.
The commend should describe exit condition, usually we calculate something and then exit on condition.