5 ms·
I have a bowl. What types should it accept? Well certainly soup. And nuts. And everything in between. Plus washers and ball bearings and my son's head for hai
by brudgers 14y ago
I have a bowl. What types should it accept?
Well certainly soup. And nuts. And everything in between.
Plus washers and ball bearings and my son's head for haircuts. Solids, liquids and gasses need to implement the Bowlable interface. Just to be <type> safe, vacuums should probably implement Bowlable as well.
I've got some classes to write and inheritance to track. Then all that's left is to implement Microwavable, Edible, Spoonable, and Unhealthy. Then I can enjoy my Maruchan Ramen.
Bad things will happen if I put a can of Rustoleum in my Microwave and power it up on high for five minutes. So I'm not saying type safety doesn't matter. Just that it is not always better.
- pohl 14y agoPut pesticide in the bowl. Try to get soup out of the bowl. Feed to son. This old debate will rage on forever.
- deleted 14y ago[deleted]