As someone who practices and encourages others to employ formal methods in software development, I'm disappointed to read a post that claims FP has some significant effect on correctness. This has not been established, and does not at all appear to be the case. There are many aspects, including techniques and tools, that can positively affect program correctness. The choice of a programming language or even a paradig…
There are certainly a lot of people who feel that way, though. Especially when the language has an expressive type system. Would you say these languages merely swap one kind of error for another?
You hit the nail on the head:
The Safyness of Static Typing
https://blog.metaobject.com/2014/06/the-safyness-of-static-t...
(This is obviously for static typing, not FP, but the mechanism appears largely the same and the overlap is substantial)