Date: 09/08/01
- Next message: Edin Kadribasic: "[PHP-DEV] dso extensions and php.ini entries"
- Previous message: v2m_2gkgfvlycqk <email protected>: "[PHP-DEV] 出售傳真號碼"
- In reply to: Andi Gutmans: "Re: [PHP-DEV] zend_parse_parameters"
- Next in thread: Zeev Suraski: "Re: [PHP-DEV] zend_parse_parameters"
- Reply: Zeev Suraski: "Re: [PHP-DEV] zend_parse_parameters"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sat, 08 Sep 2001, Andi Gutmans wrote:
> Anyway, performance aside, there is also the point of conventions. Up to
> now, PHP has been pretty much a functional language with an argument list.
> It might make sense for big certificates to be passed as arrays. But
> instead of going ahead and diving into the code, I think it'd be a good
> idea if we came up with guidelines for the cases where it's OK to pass
> arrays. IMO, it should be in very specific cases where it is clearly
> beneficial to use arrays than passing 10 arguments. The guidelines should
> also take performance into account and should only allow its usage in
> functions where performance is not much of an issue.
> If we make it very clear it will be easy for PHP dev to shout "Hey, you're
> not allowed to use this in function foo() because of a, b, c".
> I don't want to be a pain but I want to make sure we don't start a bad
> status quo. From my experience, you make this kind of stuff available and
> it gets misused very quickly.
The real solution to this, of course, would be keyword arguments. How
about them for v2?
-Andrei
"In My Egotistical Opinion, most people's C programs should be indented
six feet downward and covered with dirt." -- Blair P. Houghton
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Edin Kadribasic: "[PHP-DEV] dso extensions and php.ini entries"
- Previous message: v2m_2gkgfvlycqk <email protected>: "[PHP-DEV] 出售傳真號碼"
- In reply to: Andi Gutmans: "Re: [PHP-DEV] zend_parse_parameters"
- Next in thread: Zeev Suraski: "Re: [PHP-DEV] zend_parse_parameters"
- Reply: Zeev Suraski: "Re: [PHP-DEV] zend_parse_parameters"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

