On Thu, September 30, 2010 7:20 am, Matthew Weier O'Phinney wrote:
> On 2010-09-29, Stas Malyshev <smalys...@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



-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to