|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Re: Re: Re: Re: indirect object in camel bookby dragonchild (Archbishop) |
| on Oct 08, 2001 at 16:21 UTC ( [id://117490]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Yes, new CGI:: is the exact same as CGI->new, in terms of the interpreter.
However, how do you explain to someone that every single method call you make uses the '->' syntax ... except for the constructor, which doesn't, but instead starts using this (seemingly) random '::' syntax. This isn't the most maintainable concept. What happens if you forget to put the second ':'? The difference between ':' and ';' isn't entirely obvious to a casual glance. In addition, as ':' and ';' are on the same key, mistyping problems are multiplied. Essentially, what this boils down to is "Wow, that's a neat way of doing things. I didn't know I could do that. But, why on earth would I want to obfuscate my production code?" ------ Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||