ACF-Team / ACF-3

ACF
MIT License
67 stars 55 forks source link

[SUGGESTION] Use namespaces to organize code #166

Open TwistedTail opened 3 years ago

TwistedTail commented 3 years ago

Short Description

At the moment, everything except for a few exceptions, the one I remember from the top of my head being the Permissions stuff, is thrown inside the ACF global table. One way to organize this would be to divide everything into smaller tables that only contain the stuff related to a certain aspect of ACF, such as:

References (Optional)

Although I feel like everything inside this file could be improved, I like the fact everything is inside the ACF.Permissions table.

https://github.com/Stooberton/ACF-3/blob/master/lua/acf/base/permission/sv_permissions.lua

TwistedTail commented 2 years ago

Current changes on 773363d allow ACF to automatically create namespaces based on folder structure. This feature should be used in all future additions.