in reply to Re: Modules for autogenerating accessor/mutator methods
in thread Modules for autogenerating accessor/mutator methods
When a lot ( > 2 ) of your subroutines have the exact same code, why type it more than once? :)
Other than that, some things generate lots and lots of accessors. Writing some code to automatically generate them all means less typing and a single point of maintenance when you decide you need to change them all.
|
|---|