Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to Are sub/method synonyms acceptable coding practice?

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
  • Comment on Re: Are sub/method synonyms acceptable coding practice?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://510159]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2023-03-28 05:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (66 votes). Check out past polls.

    Notices?