Hi!

>> > there should be no bc break as the API doesn't change and the method
>> > produces the exact same result as before.
>>
>> Sorry, this makes no sense to me. You claim that if you changed the
>> method code to do different thing it should continue working as if you
>> didn't change it? Why? I just don't get it.
>>
> If every change of a method code is a bc break then you should stop
> coding as bc breaks are evil.

Sorry, I still can't understand this. Who's talking about "every change
is a bc break"? You changed your code so that if was working before but
now it doesn't. It is a bad change. Has nothing to do with the engine.
Has nothing to do with "every change". Has nothing to do with anything
except misguided expectation that if you use some feature in your code
and then change the same code to not have that feature, somehow
(magically?) it is expected to still work. It can't and won't. Either
don't rely on that feature or don't remove it.

> You talked that a method defined as instance method (no static modifier
> defined) will become the same API as if the static modifier were defined

I don't know what you refer to as "same API" but the basic fact - not in
the future, not "will become", not in theory, but in PHP right now -
that the difference is only that static methods can't use $this. All the
rest works the same.

> only because the method doesn't use $this. In my eyes this magically
> changes the API.

Your eyes are wrong, nothing is changing any APIs.

-- 
Stas Malyshev
smalys...@gmail.com

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

Reply via email to