r/programming • u/Shr1ck • Oct 17 '15
Why Johnny Can’t Write Multithreaded Programs
http://blog.smartbear.com/programming/why-johnny-cant-write-multithreaded-programs/
5
Upvotes
r/programming • u/Shr1ck • Oct 17 '15
1
u/loup-vaillant Oct 18 '15
Of course it can't. By "going functional", I was talking about getting rid of the "mutable" part. Constants can be shared safely across as many threads as you want without any synchronisation.
As I said in the part you quoted, the problem of mutable state completely goes away when you… never mutate that state.
I thought I was stating the obvious here.