forked from TES3MP/CoreScripts
-
Notifications
You must be signed in to change notification settings - Fork 1
structure
HebiKotei edited this page Feb 25, 2023
·
1 revision
Variables and functions should be scoped to the smallest visibility needed. Prefer in order: local, global, export.
If you need the variable for one function, you declare the variable local within the function.
Never use spaces, "_" and "-" are acceptable alternatives. You may also chose to do camelCase as well.
You should not exceed 4 levels of indentation if you can avoid it. Any more impacts the readability of code. Effective use of guard functions will be necessary to cut down on this.