4 ms·
One thing that springs to mind: Does it handle duck-typing? In other words, can I specify "any object that responds to methods x and y" as the expected type of
by vidarh 8y ago
One thing that springs to mind: Does it handle duck-typing? In other words, can I specify "any object that responds to methods x and y" as the expected type of a variable?
Because if treats classes as equivalent to types, then to me it encourages non-idiomatic Ruby.
- inopinatus 8y agoWe only have the published examples to go on, but unfortunately they all seem to assume that type means class. If that’s borne out I could never use this library. It’d be the antithesis of duck typing and object messaging.