Re: RE: [RFC] Fast Parameter Parsing API

From: Date: Mon, 26 May 2014 07:23:45 +0000
Subject: Re: RE: [RFC] Fast Parameter Parsing API
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-74483@lists.php.net to get a copy of this message
On Mon, May 26, 2014 at 9:17 AM, Zeev Suraski <zeev@zend.com> wrote: > I think the main challenge is the fact it turns what today is a one-liner > (albeit a bit obscure) into a long multi-line all-caps gig. I’ve tried to > think about alternatives but so far came short with something that > elegantly solves the problem, short of using C++ which I think goes too far > in the context of what we’re trying to achieve. > > > > I’ll do some more thinking… One thing I did not look at yet (too many things to catch up with :) is how we could solve two problems in one shot. Hannes and other mentioned the pain it is to maintain the parameters information in two or three places, reflection structs, inline doc and zpp. It could be possible to use the reflection struct for argument parsing, while adding support for types and maybe named arguments while being at it. Just a thought, I have to investigate this idea, or anyone else with some more available time :) Cheers, -- Pierre @pierrejoye | http://www.libgd.org

« previous php.internals (#74483) next »