Should types be Nullable by default or not?
samuelgoto opened this issue · 0 comments
samuelgoto commented
function foo(f: Foo) {
}
f(null); // Should this be a type error or not?
Just as a reference:
- typescript: default nullable
- flow: default non-nullable
- closure: default non-nullable