in reply to Object Oriented packages - classes and subroutines
I often (not always) make those into methods anyway. The advantage is that others can subclass and override them. Now, you may be thinking, "But, these aren't that type of function that should be overridden." My experience says that even these can be overridden to good effect sometimes. For example, if you've pulled out a common sort function into another function, making it a method would mean that someone two years from now could decide they want a different sort order and simply override it. But you probably can't imagine why right now.
Just food for thought ;-)
|
|---|