R
Robert Dober
Do you mean it works like the TGV but nobody really knows why? Ok IAnd his description of Eiffel, "Quintessentially French!"
guess I have to leave my wife's country now .
Robert
Do you mean it works like the TGV but nobody really knows why? Ok IAnd his description of Eiffel, "Quintessentially French!"
Do you know when he actually started speaking about "duck typing"?
Did he? I learned the term in connection with Python, a long long
time ago. The wikipedia article on duck typing seems to support the
idea that the term comes from that camp:
http://en.wikipedia.org/wiki/Duck_typing#History
Hi --
On Tue, 3 Jun 2008, Marcelo wrote:
I could be wrong about Dave having coined it. If it walks like a
coinage and talks like a coinage...
IMHO this is a gross generalization!
I guess that you might indeed use Ruby classes as categories in your
designs. I do not know what others do, but the simple fact that I use
Ruby classes for other things falsifies your statement.
David said:Give me an example of a class that isn't a category.
It might not be a category as far as your program logic is concerned, but it's
certainly a category of some kind. NilClass is a category of objects for whom
#nil? returns true, for example.
class MyNil
def nil?
true
end
end
p MyNil.new.nil?
Well, whoever coined "Duck Typing", I personally claim coinage of "Chicken
Typing" on October 22, 2007:
http://talklikeaduck.denhaven2.com/articles/2007/10/22/chicken-typing-isnt-duck-typing
Rick said:Well, whoever coined "Duck Typing", I personally claim coinage of "Chicken
Typing" on October 22, 2007:
http://talklikeaduck.denhaven2.com/articles/2007/10/22/chicken-typing-isnt-duck-typing
Joel said:I hereby claim "turducken typing", but I have no idea what it means.
Marcelo said:Did he?
Interesting that this works -- but it doesn't disprove my point. Humans are a
category of mammals -- that doesn't imply that all mammals are humans.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.