Re: [RFC] skipping optional parameters
| From: | Yasuo Ohgaki | Date: | Wed, 18 Apr 2012 08:28:43 +0000 |
| Subject: | Re: [RFC] skipping optional parameters | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-60168@lists.php.net to get a copy of this message | ||
Hi,
2012/4/18 Ryan McCue <lists@rotorised.com>:
> Yasuo Ohgaki wrote:
>>
>> Something like
>>
>> setcookie( name:'mycookie', value:'abc', secure:true, httponly:true );
>>
>> is really nice to have. Source code will be much more readable.
>
>
> This is getting off-topic, but while we're here, I think:
>
> setcookie($name => 'mycookie', $value => 'abc');
>
> ...would be better.
Real life code would be something like
setcookie($name => $my_cookie_name, $value => $value);
It's confusing.
Off topic anyway.
Regards,
--
Yasuo Ohgaki
yohgaki@ohgaki.net