Hi Andi,

Thanks for the reply.  Yeah, array_fill_keys() may well make more sense. :-)
I had thought about that originally, and thought I came up with a reason to
just extend array_fill(), but I can't remember the reasoning now... (Maybe I
wasn't sure if you'd want another function.)

After your message, I think I'll proceed with array_fill_keys unless I hear
otherwise.  OK?  And make tests for it and array_fill (since there are none
now) and submit a new patch with everything ASAP.


Thanks,
Matt


----- Original Message ----- 
From: "Andi Gutmans" <[EMAIL PROTECTED]>
To: "'Matt W'" <[EMAIL PROTECTED]>; <internals@lists.php.net>
Sent: Tuesday, July 11, 2006 4:42 PM
Subject: RE: [PHP-DEV] [PATCH] array_fill: Allow an array to specify keys


> I don't have a problem with the functionality and the patch doesn't seem
> problematic.
> I do question though whether we want to add this to array_fill()? Not sure
> if that parameter overloading is very intuitive as it doesn't just add one
> parameter. What do others think? Would you prefer an array_fill_keys()?
>
> Andi

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to