Re: [PHP-DEV] FW: Functionality request/proposal

2013-01-15 Thread Steve Clay
On 1/14/13 9:53 PM, Paulo Henrique Torrens wrote: lots of code where people put it there, and I always get a little frustrated when using PHP because I'm used on adding it (without even noticing), and my code keeps failing Pay more attention and/or use an IDE that has templates and shows pars

RE: [PHP-DEV] FW: Functionality request/proposal

2013-01-14 Thread Paulo Henrique Torrens
guys will tell me to use something like flatten(), probably RecursiveArrayIterator or stuff, but... for future implementations, that multiple return would help. =P Better? Date: Mon, 14 Jan 2013 14:48:08 +0100 Subject: Re: [PHP-DEV] FW: Functionality request/proposal From: krebs

Re: [PHP-DEV] FW: Functionality request/proposal

2013-01-14 Thread Sebastian Krebs
2013/1/14 Johannes Schlüter > On Mon, 2013-01-14 at 04:10 +, Paulo Henrique Torrens wrote: > > Hi, > > > > I'm currently interested in two features I'd like to see in PHP; how do > I proceed to request/propose them? I'd be glad to help implementing them as > well, if necessary. > > > > > > On

Re: [PHP-DEV] FW: Functionality request/proposal

2013-01-14 Thread Johannes Schlüter
On Mon, 2013-01-14 at 04:10 +, Paulo Henrique Torrens wrote: > Hi, > > I'm currently interested in two features I'd like to see in PHP; how do I > proceed to request/propose them? I'd be glad to help implementing them as > well, if necessary. > > > One of them is really simple, but would b

Re: [PHP-DEV] FW: Functionality request/proposal

2013-01-14 Thread Ángel González
On 14/01/13 05:10, Paulo Henrique Torrens wrote: > Hi, > > I'm currently interested in two features I'd like to see in PHP; how do I > proceed to request/propose them? I'd be glad to help implementing them as > well, if necessary. You should propose it here and then create a rfc about it in the p

Re: [PHP-DEV] FW: Functionality request/proposal

2013-01-14 Thread Stas Malyshev
Hi! > function multi() { > return 10, 20; > }; This can be done with: function multi() { return [10, 20]; } list($x, $y) = multi(); However, sum() won't work this way: > echo sum(multi()); // echoes 30 But can work this way: call_user_func_array("sum", multi()); -- Stanislav Ma

[PHP-DEV] FW: Functionality request/proposal

2013-01-13 Thread Paulo Henrique Torrens
Hi, I'm currently interested in two features I'd like to see in PHP; how do I proceed to request/propose them? I'd be glad to help implementing them as well, if necessary. One of them is really simple, but would be helpful to people with different coding styles class Test { public function