Re: late static binding (please break BC?)

From: Date: Tue, 05 Jun 2007 18:28:07 +0000
Subject: Re: late static binding (please break BC?)
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-30076@lists.php.net to get a copy of this message
Etienne Kneuss wrote:
It's always dangerous to introduce a new keyword, as it can/will break BC (i.e what if somebody has defined a function derived(), the parser would choke on that). I'm personally fine with static, even if it may eventually introduce some confusion. Regards
Perhaps we should just introduce a new keyword? Isn't this one of those few cases where you should? Words like 'derived' and 'extended' are very unlikely function names anyway. More likely people would call them derive() or extend(). FWIW: "function derived()" gives me 0 results on Google code search. :)

« previous php.internals (#30076) next »