Comment by IshKebab
Comment by IshKebab 3 days ago
Nice! I think it's pretty widely agreed that requiring type annotations at the function level is a good thing anyway. Apparently it's considered good practice in Haskell even though Haskell doesn't require it.
I've also worked with OCaml code that didn't do it and you lose a lot of the advantages of static typing. Definitely worse.
Rust got it right.
But I have the compiler write the type annotations for me. If it can't do that, it makes my job harder to make sure top-level functions have types.