in reply to Re: Built-in Function Homonyms for Method Names Bad, Too?
in thread Built-in Function Homonyms for Method Names Bad, Too?

Well, there are plenty of decent synonyms I could use for method names instead. So that point is covered in my case.

I guess the tough question is: if I keep using these homonym method names is there some Perl syntax parsing nightmare I'm going to hit at some point.

OR

If you (plural) can't cite specific examples of Perl parsing dangers, is the threat of such dangers enough for me to not use homonyms.

  • Comment on Re^2: Built-in Function Homonyms for Method Names Bad, Too?

Replies are listed 'Best First'.
Re^3: Built-in Function Homonyms for Method Names Bad, Too?
by adrianh (Chancellor) on Jan 26, 2006 at 16:22 UTC
    I guess the tough question is: if I keep using these homonym method names is there some Perl syntax parsing nightmare I'm going to hit at some point.

    Short answer is, if you're always calling methods with ->, then there won't be a problem. Parsing problems only come about when your in a place where a built in can live, and after -> isn't one of those places.

    Personally I'm for using homonym method names when they make sense, since if they're used appropriately you already "know" what they do.