14 Dec
2005
14 Dec
'05
9:46 p.m.
On Wed, Dec 14, 2005 at 12:32:27PM -0800, Neil Drumm wrote:
Chris Johnson wrote:
Interesting idea. So I rewrote object2array() and better() like this:
function object2array($object) { return get_object_vars($object); }
function better($object) { return (array) $object; }
Why do we even need these one-line functions? Can't the calling code just do the casting?
I just finished posting the same thought in a comment on the issue[0]. Seems like a good idea to me... Extraneous function calls are bad. Thanks, -- Keegan Quinn <keegan@thebasement.org> CEO, Producer the basement productions http://www.thebasement.org [0] http://drupal.org/node/41169