Re: RFC - Array slice syntactic sugar

From: Date: Fri, 20 Mar 2015 11:40:17 +0000
Subject: Re: RFC - Array slice syntactic sugar
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-85274@lists.php.net to get a copy of this message
> > I've tried implementing python style slice on both strings and arrays in the past (I don't seem to have an existing branch with it in any more > though it seems). The biggest problems I hit were regarding the syntax, the > functionality itself worked. If you've got a link to your messaging thread, I'd love to read it. Thanks Colons caused problems with ternary operators in the lexer, and I had an > issue with commas too, but I forget what it was. Of course these might have > been resolvable, but I didn't put too much effort into it. Could this not be mitigated by adding a new token like T_COLON to be used to match this use case?

« previous php.internals (#85274) next »