4 ms·
If it bothers you, you can just stick type annotations where you need them. Annotations are mostly optional, but required in cases where they can't be inferred
by sparkie 8y ago
If it bothers you, you can just stick type annotations where you need them. Annotations are mostly optional, but required in cases where they can't be inferred automatically.
If you're using Visual Studio or Monodevelop, merely hovering the cursor over an expression will reveal its type as the compiler would infer it.
I personally write F# with most type annotations on functions, with the main exception that I omit "unit" on functions returning it, since it is usually obvious, and you will get a warning if you accidentally try to return anything else.