Displaying 1 result from an estimated 1 matches for "package_fun".
2011 Aug 23
2
Increase transparency: suggestion on how to avoid namespaces and/or unnecessary overwrites of existing functions
...:
1) In order to avoid name clashes/unintended overwrites, how about
switching to a coding paradigm that explicitly (and automatically)
includes a package's name in all its functions' names once code is
turned into a real package? E.g., getting used to "preemptively" type
'package_fun()' or 'package.fun()' instead of just 'fun()'. Better to be
save than sorry, right? This could be realized pretty easily (see
example below) and, IMHO, would significantly increase transparency.
2) In order to avoid intended (but for the user often pretty obscure)
overwrites...