Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Built-in Function Homonyms for Method Names Bad, Too?by hv (Prior) |
on Jan 26, 2006 at 00:01 UTC ( [id://525604]=note: print w/replies, xml ) | Need Help?? |
I see nothing wrong with it as long as the names are appropriate in the context of the class. My work application has delete (for the SQL sense) and bless (for the Perl sense) supplied by the database abstraction, and other areas offer warn, die, open, close, log, format, umask, stat, send, ref and link. And that's just the explicit ones: there are probably many more keywords used as fieldnames in the database which get autogenerated accessors of the same name. The fact that they are also keywords has not caused any problems for me in the 4-5 years of using them, nor (to the best of my knowledge) for my colleague. I don't use a syntax highlighter though. :) Hugo
In Section
Seekers of Perl Wisdom
|
|