Very sad that people identify this with static typing. A better image for static typing would be a machine sorting identical eggs into chicken and duck eggs.
Daniel Sobral |
March 16, 2012 at 02:42 AM
Hey, this one is nice.
I'm smiling as I see the comic.
It's creating an object. Factory way. Nice one.
March 16, 2012 at 03:21 AM
March 16, 2012 at 06:39 AM
This is not static typing. This is a lack of type inference.
March 16, 2012 at 11:01 AM
NOOOOOO, that's duck typing! :)
March 16, 2012 at 01:11 PM
Duck duckDuck = duck.goose()
H. Howe |
March 16, 2012 at 04:35 PM
What you want to criticize is languages with lame type systems (such as Java, C#), and not static typing. Here is how Haskell would look:
d = Duck "Donald"
March 16, 2012 at 08:50 PM
The comments to this entry are closed.
I'm a IT-guy in Hamburg, Germany