Displaying 1 result from an estimated 1 matches for "mypkgfoo".
2011 Feb 16
2
Avoiding name clashes: opinion on best practice naming conventions
...with respect to the naming
conventions when building own packages.
I'd like to minimize the risk of choosing function names that might
interfere with those of other packages (both available ones and those yet to
come).
I came up with following alternatives
1. Prefixing the actual names (e.g. myPkgfoo() instead of foo()): pretty
verbose
2. Emulating a package namespace while developing and explicitly using
myPkg::foo() in all scripts: IMHO the best way, but apparently not possible
as I learned.
3. Carefully choosing which functions to export. Yet, I'm not sure I
completely understand the im...