2 ms·
John Carmack on Functional Programming in C++
- deleted 2y ago[deleted]
- mcc1ane 2y ago(2018) at least
- tosh 2y agomaybe (2012) or earlier https://news.ycombinator.com/item?id=3896404 https://news.ycombinator.com/item?id=3896404
- PeterWhittaker 2y agoGreat summary of the motivation: A large fraction of the flaws in software development are due to programmers not fully understanding all the possible states their code may execute in. In a multithreaded environment, the lack of understanding and the resulting problems are greatly amplified, almost to the point of panic if you are paying attention. Programming in a functional style makes the state presented to your code explicit, which makes it much easier to reason about, and, in a completely pure system, makes thread race conditions impossible. That is prescient, clear, and worthy of great reflection.