3 ms·
Yes, the main reason to give type annotations is to make debugging easier and as documentation. In eg Haskell, you often write the types first, even though in
by eru 6y ago
Yes, the main reason to give type annotations is to make debugging easier and as documentation.
In eg Haskell, you often write the types first, even though in principle you seldom would have to write the types at all.