News for hackers. Stuff that matters.
Re:Late Architecture with Functional Programming by marcosdumay on Sunday April 30, 2023 @02:03PM (#35765004)
> Types just make it easier to avoid mistakes

If you look at a language like Haskell, types are there to provide polymorphism and allow you to rearrange the language in convenient ways. It's impossible to say what is the single main use of types there, but this is certainly one of the most important ones. Another main use of types there is documenting interfaces.

People only get to say that types provide nothing else but correction if they decide that all the other uses are non-important and should be ignored. But then, that's a pretty trivial and useless information.

There are no comments on this comment yet.