Re: [PHP-DEV] [RFC Proposal] var keyword deprecation/removal

2016-03-02 Thread Tony Marston
wrote in message news:56d5dda6.4080...@fleshgrinder.com... On 3/1/2016 6:34 PM, Rowan Collins wrote: Rowan Collins wrote on 01/03/2016 11:33: Secondly, violating visibility may have repercussions outside actual errors. Incidentally, PHP itself encountered this a few years ago, where a rele

Re: [PHP-DEV] [RFC Proposal] var keyword deprecation/removal

2016-03-02 Thread Rowan Collins
Tony Marston wrote on 02/03/2016 09:53: wrote in message news:56d5dda6.4080...@fleshgrinder.com... On 3/1/2016 6:34 PM, Rowan Collins wrote: Rowan Collins wrote on 01/03/2016 11:33: Secondly, violating visibility may have repercussions outside actual errors. Incidentally, PHP itself encou

Re: [PHP-DEV] Fw: unpack()

2016-03-02 Thread Dmitry Stogov
I've added a test to explain the behavior https://gist.github.com/dstogov/edbb1efcd1e9701e75ab "@" and $offset might be used together and work additive. Thanks. Dmitry. From: Leigh Sent: Thursday, February 25, 2016 18:20 To: Dmitry Stogov Cc: Nikita Pop

Re: [PHP-DEV] [RFC Proposal] var keyword deprecation/removal

2016-03-02 Thread Fleshgrinder
On 3/2/2016 11:09 AM, Rowan Collins wrote: > I think the point was that *the difference between* "var" and "public" > was being abused, which wouldn't be possible if there were only one > keyword. > > However, I agree that it's a very weak argument for removal (just as "I > [ab]use 'var' to mean s