3 ms·
> the only difference is that your compiler cannot tell you that you are doing it wrong while a strict interface can be checked at compile time In most compile
by humanrebar 10y ago
> the only difference is that your compiler cannot tell you that you are doing it wrong while a strict interface can be checked at compile time
In most compiled languages with closures, the parameters are type-checked. In some, the return type is also type checked, but there are typically ways to add type checking to the return type if that's important.