[development] Drupal - to use objects or arrays

adrian rossouw adrian at bryght.com
Wed Jan 10 09:40:15 UTC 2007


On 10 Jan 2007, at 6:08 AM, Rowan Kerr wrote:

>> There's no hard rule, but I think "what makes semantic sense when  
>> writing it"
>> is the guideline.  Oh yes, and when iterating over records from a  
>> database
>> where it really doesn't make a difference, using db_fetch_object()  
>> seems more
>> common than db_fetch_array(), simply because there's fewer funky  
>> characters
>> involved with objects than arrays. :-)
>
> I'd be happy to see objects removed completely from Drupal...

agreed.

We do all that extra casting , for no real reason.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20070110/dad630a6/attachment.htm 


More information about the development mailing list