John Wilger wrote:
>> The disadvantage of making Array#to_csv is that you are
>> modifying a global "variable" (the Array class).
> 
> I'll take that disadvantage (in combination with good test coverage!)
> over having to write verbose, type-checking code any day.

IMO, this is not an either/or case. Why not just add to_csv() only to 
the instance who actually could need it?

To me, a big part of the duck typing concept is to define an object for 
what it really describes, not just lazily include every method you might 
or might not need.


Best regards,

Jari Williamsson