Re: Proposal for serious BC compatibility aka language versioning

From: Date: Wed, 06 Feb 2013 17:40:35 +0000
Subject: Re: Proposal for serious BC compatibility aka language versioning
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-65700@lists.php.net to get a copy of this message
On 05/02/13 21:16, Karoly Negyesi wrote:
> new keywords is an interesting discussion to have -- it's actually the
> first real thing to discuss as far as I can see. For example that is
> something that version strings would tremendously help. You do not
> need to maintain the whole lot of behaviors for every version just the
> parser? Also, new keywords typically introduce new syntax. Here's an
> example, a quick github code search found
> https://github.com/chriso/klein.php/blob/master/klein.php#L600
> this.
> function yield() is not a valid usage of the new yield keyword nor is
> yield() so perhaps it's not impossible to accomodate this kind of
> code? Let's discuss.

That's one of the easiest incompatibilities to detect (run new-php -l to
all
your files), and also to fix (replace all instances of that new keyword
with
a new name).



Thread (48 messages)

« previous php.internals (#65700) next »