3 ms·
Good point. But how can you know the types statically (at development-time) without defining interfaces?
by ptx 7y ago
Good point. But how can you know the types statically (at development-time) without defining interfaces?
- emodendroket 7y agoYou could specify that your method takes an object which has method XYZ accepting an int as its parameter and returning another int -- a kind of "anonymous" interface, I guess. Personally I don't like this kind of stuff because there's no guarantee that two objects with a convert method do the same thing when that method is called.