- [] is a List Empty, so can be used where any List X is required;
- Option.none is an Option Empty, so can be used where any Option X is required.
- An explicit closure, { ... }, has type Any=>Empty, and so isA X=>Y for any X, Y.
We've drifted a bit towards dynamic typing, but all is now very straightforward.
No comments:
Post a Comment