|
|
|
|
|
by tewolde
4866 days ago
|
|
For the dev building the library static typing is a very convenient thing to have. All the ins and outs have very clear rules enforced at compile level. However, for the user of the library, it simply gets in the way. This may be avoided though if the library has been designed well enough that strange internal types are not exposed to the user unless absolutely necessary. |
|
Essentially, the types are compiler-enforced documentation. They also make discovering functions easier--a type is a succinct summary of what a function does, so I can just browse by types to find what I want quickly. Augment this with great tooling like Hoogle (a type search engine) and you've got a truly awesome development system.