HomeFreeBSD

style.lua(9): Clarify local variable guideline

Description

style.lua(9): Clarify local variable guideline

The intent of this guideline is to avoid creating global variables in module
scope. Its main purpose is to serve as a reminder that variables at module
scope also need to be declared.

We want to avoid global variables in general, but this is easier to mess up
when designing things in the module scope.

Details

Provenance
kevansAuthored on Feb 20 2018, 5:21 AM
Parents
rG699578a6b85a: stand/lua: Insert helpful comment for drawer.branddefs
Branches
Unknown
Tags
Unknown

Event Timeline