Scripting Guide > Programming Methods > Advanced Scoping and Namespaces > Best Practices for Advanced Scripting
发布日期: 04/13/2021

Best Practices for Advanced Scripting

Minimize Polluting the Global Namespace and Prevent Scripts from Interacting

Always start your script with this line:

Names Default To Here(1);

Share Variables Across Scripts

Use named namespaces. Namespace names are placed in the global scope.

Use Anonymous Namespaces

Using namespace references to anonymous namespaces avoids possible conflicts with other namespaces.

需要更多信息?有问题?从 JMP 用户社区得到解答 (community.jmp.com).