From: dblack@... Date: 2007-03-04T04:41:48+09:00 Subject: Re: Duck Typing Hash-Like Objects Hi -- On Sun, 4 Mar 2007, Rick DeNatale wrote: > On 3/2/07, dblack@wobblini.net wrote: >> > >> > Imagine Shakespeare writing Romeo and Juliet in C++, he'd have to >> > pre-declare all the players, and come up with strong types closely >> > bound to the implementation of the actors, before he wrote a line of >> > dialog. >> >> I don't think this is what's at stake in any of this discussion, >> though. We're all hip to the dynamicness of Ruby :-) No one's >> talking about static typing. But I'd be happy to experiment with a >> moritorium on the word "type". > > Well many of us are in fact hip to it, but the fact that attempts to > formalize or mechanize 'duck typing' indicate that not all who swim in > the waters of this group are. And since ruby-talk gets reflected to > comp.lang.ruby and therefore many of the postings get cross-posted to > various comp.lang.* groups means that there are at least some static > typing advocates who read some of what transpires here. On the other hand, if a thread about types *isn't*, for once, a "debate" about static "vs." dynamic typing, just enjoy it! :-) David -- Q. What is THE Ruby book for Rails developers? A. RUBY FOR RAILS by David A. Black (http://www.manning.com/black) (See what readers are saying! http://www.rubypal.com/r4rrevs.pdf) Q. Where can I get Ruby/Rails on-site training, consulting, coaching? A. Ruby Power and Light, LLC (http://www.rubypal.com)