From: dblack@... Date: 2006-07-24T22:42:56+09:00 Subject: Re: I'll have the duck! Hi -- On Mon, 24 Jul 2006, Robert Dober wrote: > On 7/24/06, Alex Young wrote: >> >> Robert Dober wrote: >> >> > Maybe we can fly. Maybe. But I do not believe so. >> > It just strikes me as if the community is throwing away so much by >> being, >> > forgive me to be blunt, intolerant about philosophies that are well >> known, >> > like early failing. >> > Although I said intolerant I want to add immediately that they are >> nicely >> > so, but quite firmely. >> Duck typing doesn't stop you from failing early. If you combine the >> #implements? method with the monitor-functions example from earlier in >> the thread, you've got quite a nice interface checker. >> >> You can have your duck and eat it too. > > > Nice 1. > > -- >> Alex >> >> > Ah sorry I had the impression some are fairly opposed to that approach and > considered it unrubyfull. Maybe I am too *sensible*. I don't think I'd call interface-checking "duck typing", but if it helps you build the program you want, then you should probably do it. David -- http://www.rubypowerandlight.com => Ruby/Rails training & consultancy http://www.manning.com/black => RUBY FOR RAILS (reviewed on Slashdot, 7/12/2006!) http://dablog.rubypal.com => D[avid ]A[. ]B[lack's][ Web]log dblack@wobblini.net => me