Re: Re: [RFC] Syntax for variadic functions
From: Sara Golemon Date: Mon, 16 Sep 2013 19:02:52 +0000 Subject: Re: Re: [RFC] Syntax for variadic functions References: 1 2 Groups: php.internals Request: Send a blank email to [email protected] to get a copy of this message
> > > I'd like to go forward with voting on this. Are there any issues that still > need to be resolved? > > Assuming the RFC as-is represents the current state, I'm +1 on all of it. I'm not a fan of some of the proposed alterations which would translate arrays (a la call_user_func_array()). To clarify, the following output is what I'd expect: function f(...$args) { echo count($args); } f(1,2,3); // 3 f([1,2,3]); // 1 Not "3" in both cases. -Sara
Thread (24 messages)
« previous | php.internals (#69150) | next » |
---|