3 ms·
`a` and `b` would explicitly be cast to any, which is forbidding in strict mode, which is TypeScript's default and recommended mode.
by Vinnl 7y ago
`a` and `b` would explicitly be cast to any, which is forbidding in strict mode, which is TypeScript's default and recommended mode.
- virtualwhys 7y agoWhich is exactly the author's point, in TS you must specify the types (to guarantee type safety), whereas in MLs parameters can be inferred.