User loginNavigation |
Duck typing vs Structural SubtypingI ran into structural subtyping [vs nominal] this summer with Cannasee's Motion-Types description. While talking to somebody about a joke ["Genetic code is dynamically typed and favors the "duck typing" philosophy. This creates an enormous amount of security holes, where special ducks ("poisons") with appropriate appearance but malicious behaviour could be introduced into the system."], we realized we didn't know the precise difference between the two terms. Duck typing seems to have a dynamic connotation, where as structural subtyping is one of the gems of the static ocaml world. A google search actually hit the LtU forums with someone hinting at subclassing vs subtyping. I have a couple of ugrad years left and would like to know this one before I'm out :) Thoughts? - Leo By lmeyerov at 2005-12-29 03:53 | LtU Forum | previous forum topic | next forum topic | other blogs | 54900 reads
|
Browse archives
Active forum topics |
Recent comments
37 weeks 3 days ago
37 weeks 3 days ago
37 weeks 3 days ago
1 year 7 weeks ago
1 year 11 weeks ago
1 year 13 weeks ago
1 year 13 weeks ago
1 year 16 weeks ago
1 year 20 weeks ago
1 year 20 weeks ago