Re: Bug in 5.3 __invoke() magic method?

From: Date: Sun, 03 Oct 2010 12:03:06 +0000
Subject: Re: Bug in 5.3 __invoke() magic method?
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-49847@lists.php.net to get a copy of this message
On Thu, September 30, 2010 7:20 am, Matthew Weier O'Phinney wrote: > On 2010-09-29, Stas Malyshev <smalyshev@sugarcrm.com> wrote: > * BC break for existing codebases that have properties and methods of > the same name. (That's a code smell, anyways, and tools can help > developers refactor to fix such cases.) Errrr. No. Oft-times the property and method have the same name as the a "getter" and I like it that way. I don't really want to re-factor my code because you think I should re-name everything all goofy. :-) > I personally think the BC breaks here are worth it -- they make the > behavior more predictable, easier to document, and easier to > understand. If a developer can't understand that properties and methods are different beasts, then I'm not sure they ought to be using OOP at all... But I'm an old Lisp hacker, and am more befuddled by JS et al cramming everything into one bucket than this separation of church and state... :-) -- brain cancer update: http://richardlynch.blogspot.com/search/label/brain%20tumor Donate: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FS9NLTNEEKWBE

« previous php.internals (#49847) next »