Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 2
    $\begingroup$ In packages, all symbols should be localized to the package context, then you can clear the whole context in one go instead of having to clear definitions one by one. Some packages have it at the beginning. $\endgroup$ Commented Jul 20, 2015 at 17:48
  • 2
    $\begingroup$ FWIW, I keep ClearAll in my packages, even in production code. I can't see how this can possibly hurt, while this leaves me an option to not clear certain symbols, for example because they receive their definitions in more than one file (which doesn't often happen, but sometimes does, and can not always be easily avoided). $\endgroup$ Commented Jul 20, 2015 at 21:37