3 ms·
> Interface types are similar to interface types in languages like Java, with one huge exception: you don't need to declare what interface types you implement!
by statictype 17y ago
> Interface types are similar to interface types in languages like Java, with one huge exception: you don't need to declare what interface types you implement!
Nice. This seems to add the benefits of duck-typing, but with type checking.