From: Stefan Rusterholz Date: 2007-02-18T00:54:42+09:00 Subject: Re: Oppinions on RCR for dup on immutable classes Yukihiro Matsumoto wrote: > As far as I understand, DuckTyping is not something based on method > existence, but something letting them raise error without explicit > type checking. Hm, we probably have a different understanding of DuckTyping then. > We haven't implemented a method that can't be executed. Object#dup > just fails if the object is not able to be duped. Am I missing > something? > > matz. I'll try to explain it differently, depict my issue. Say you go to a restaurant, take a look at the card and see "Spagetthi". You order Spagetthi but the waiter just tells you "Oh, we don't serve Spagetthi here.". You'd naturally ask "Why put it on the card then if you don't serve it at all?" My regards -- Posted via http://www.ruby-forum.com/.