![]() |
|
go ahead... be a heretic | |
PerlMonks |
Re: Are sub/method synonyms acceptable coding practice?by dug (Chaplain) |
on Nov 19, 2005 at 21:49 UTC ( #510159=note: print w/replies, xml ) | Need Help?? |
The only time I've justified this kind of aliasing to myself in the past was when I realized that I had inconsistent method names in my published API and I wanted to make them consistent in a backwards compatible way. In the instance I'm thinking of, all my action methods were named verb_noun except one. Instead of changing the API I felt it was better to provide a verb_noun alias for the one noun_verb method. -- Douglas Hunter
In Section
Meditations
|
|