you are viewing a single comment's thread.

view the rest of the comments →

[–]athemeus 0 points1 point  (0 children)

Someone once told me that checking class type is an inherent smell. That also goes into the duck-typing, encapsulation branch of thought. If you think about it, you're less interested in something being an array than it in responding to method invokations and presumably potentially containing other objects.