Re: [PHP-DEV] Re: Was Reflection annotations reader - We Need A Vision

2013-01-11 Thread Samuel Giles
On 11/01/2013 09:14, dukeofgaming wrote: Finally, I remember the lack of support for development has been a problem... so why not call out for support to the community?, from GSoC to PHP gurus litterate on Comp Sci and software engineering and architecture? I think this has been done before a

Re: [PHP-DEV] array_pick() - resent because email client broke formatting

2012-07-23 Thread Samuel Giles
Why bloat the core library of functions when you can perform: $randomValue = $array[array_rand($array)]; Am I missing the point? I don't think there is a real need for this personally it's just language bloat. Look at Java (I know it's very different) but it provides a huge amount of "built in" f

Re: [PHP-DEV] resume after exception

2012-04-02 Thread Samuel Giles
Sorry, as an add on to my previous, a feature request was opened on the Bug tracker in 2010 #51460 <https://bugs.php.net/bug.php?id=51460> for a yield syntax construct Sam. On Mon, Apr 2, 2012 at 10:51 PM, Samuel Giles wrote: > Hi Anthony, > > Ok, I see that now. I know you

Re: [PHP-DEV] resume after exception

2012-04-02 Thread Samuel Giles
m not saying it's a good idea, but this would allow for pythonic > style generators. http://wiki.python.org/moin/Generators > > Just pointing out one potential use-case... > > Anthony > > On Mon, Apr 2, 2012 at 4:35 PM, Samuel Giles > wrote: > > My major concern wo

Re: [PHP-DEV] resume after exception

2012-04-02 Thread Samuel Giles
Hi Internals function test() > { > echo "Begin Test!\n"; > > throw new Interrupt(); > > echo "Execution resumed!"; > } > > try > { > test(); > } > catch (Interrupt $e) > { > echo "Execution interrupted.\n"; > resume; > } > > The output of this would be: > > Begin Test! > Execution interrupte