4 ms·
”wins in any aspects (expressiveness, flexibility, whatever)” One ‘whatever’ where it doesn’t win is in robustness. Code will make assumptions about various ki
by Someone 7y ago
”wins in any aspects (expressiveness, flexibility, whatever)”
One ‘whatever’ where it doesn’t win is in robustness. Code will make assumptions about various kinds of animal and fail when meeting a sheep with 5 legs, or a pig that can fly.
You can solve that by testing for capabilities, but you would have to do that in many places, and make sure to cover all of them.
And yes, that comes at the cost of flexibility. Your class model won’t support flying pigs until you consciously add such support.
- artemonster 7y agoAll of what you've said is applicable to classes as well, and even more so. This line of argumentation was used _against_ classes by Lieberman (if I remember clearly)