in reply to perl, Class::DBI and OO for dynamic languages

"I always feel it's bad design if one has to do much casting."

Totally. It's also an argument for well defined interfaces in static languages, so in this case, it's best to code in your static languages in ways that the type of the object is not important to you -- i.e. base classes and interfaces.

of course I like duck typing much more...

  • Comment on Re: perl, Class::DBI and OO for dynamic languages