Re: Re: [PHP-DEV] 6.0 And Moving Forward

2012-07-17 Thread Brandon Wamboldt
I'd really like to see full unicode support as well, scalar values as objects with methods ($intVar->abs()), and the ability to import all classes/functions from a namespace. On Tue, Jul 17, 2012 at 11:37 AM, Leigh wrote: > > While I think having a legacy implementation is definitely worth while

Re: Re: [PHP-DEV] 6.0 And Moving Forward

2012-07-17 Thread Leigh
> While I think having a legacy implementation is definitely worth while, it > needs to be in core. So PHP6 would introduce the new syntax, and include the > legacy functionality in as close to 100% backwards compatible way as > possible. From there, we'd only remove the legacy functionality from c

Re: Re: [PHP-DEV] 6.0 And Moving Forward

2012-07-17 Thread Brandon Wamboldt
I agree, and it allows developers who don't need/want PHP5 compatibility to just disable the legacy namespace, reducing cruft and allowing them to prepare for future versions of PHP. Developers or hosting providers who need to support PHP5 can just compile/install PHP with default settings which w

Re: Re: [PHP-DEV] 6.0 And Moving Forward

2012-07-17 Thread Marco Pivetta
Well, being able to disable the fallback would allow developers to eagerly discover features that are going to be dropped (and it doesn't need to be a soft failure). Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 17 July 2012 16:14, Brandon Wamboldt wrote: > Aren't ce

Re: Re: [PHP-DEV] 6.0 And Moving Forward

2012-07-17 Thread Brandon Wamboldt
Aren't certain modules included in the PHP core distribution, like the mysqli extension that you enable using --with-mysqli? Could we not include the PHP5 namespace as an extension with the PHP distribution, and have it enabled by default, but provide a --disable-legacy-namespace option? Then in

Re: Re: [PHP-DEV] 6.0 And Moving Forward

2012-07-17 Thread Anthony Ferrara
I dislike this idea from the ground up. While I think having a legacy implementation is definitely worth while, it needs to be in core. So PHP6 would introduce the new syntax, and include the legacy functionality in as close to 100% backwards compatible way as possible. From there, we'd only remov

Re: Re: [PHP-DEV] 6.0 And Moving Forward

2012-07-17 Thread Andrew Faulds
This is an excellent idea. Full BC yet without legacy cruft. Old code runs on legacy support extensions, new code doesn't need it. On Jul 17, 2012 1:51 PM, "Leigh" wrote: > > Basically, the current function library is moved to the legacy > > namespace. The default setting is import the functions

Re: Re: [PHP-DEV] 6.0 And Moving Forward

2012-07-17 Thread Brandon Wamboldt
I like this idea a lot. I use PHP at work, and run everything on dedicated servers so I'd definitely prefer to run a pure PHP6 setup. Hosting providers on the other hand can over PHP5 support via an extension. +1 On Tue, Jul 17, 2012 at 9:51 AM, Leigh wrote: > > Basically, the current function

Re: Re: [PHP-DEV] 6.0 And Moving Forward

2012-07-17 Thread Leigh
> Basically, the current function library is moved to the legacy > namespace. The default setting is import the functions of the legacy > namespace into the root namespace for BC. But with that setting > turned off all the existing functions go away to be replaced with a > designed API, instead o

Re: Re: [PHP-DEV] 6.0 And Moving Forward

2012-07-15 Thread Sherif Ramadan
> When Adobe moved from Actionscript 2 to Actionscript 3 they placed all > existing functions into a legacy namespace. Similarly, I believe that > may be PHP's best shot for smoothing out the API. > > Basically, the current function library is moved to the legacy > namespace. The default setting

Re: Re: [PHP-DEV] 6.0 And Moving Forward

2012-07-15 Thread Brandon Wamboldt
I don't understand this 100% but it sounds awesome. +1 On Sun, Jul 15, 2012 at 12:14 PM, Michael Morris wrote: > When Adobe moved from Actionscript 2 to Actionscript 3 they placed all > existing functions into a legacy namespace. Similarly, I believe that > may be PHP's best shot for smoothing o

Re: Re: [PHP-DEV] 6.0 And Moving Forward

2012-07-15 Thread Michael Morris
When Adobe moved from Actionscript 2 to Actionscript 3 they placed all existing functions into a legacy namespace. Similarly, I believe that may be PHP's best shot for smoothing out the API. Basically, the current function library is moved to the legacy namespace. The default setting is import t

Re: Re: [PHP-DEV] 6.0 And Moving Forward

2012-07-14 Thread Morgan L. Owens
On 2012-07-14 04:12, jpauli wrote: On Fri, Jul 13, 2012 at 5:33 PM, Anthony Ferrara wrote: 4. Rewrite the entire parser completely. I keep hearing about how bad PHP's parser is, and how it's growing out of control. Perhaps this is a good time to rewrite it (perhaps changing semantics slightly)