3 ms·
> Why not accept that C++ isn't a functional language, and realize that many die-hard C++ users won't use these features I'm a die-hard C++ user, and have come
by quizotic 11y ago
> Why not accept that C++ isn't a functional language, and realize that many die-hard C++ users won't use these features
I'm a die-hard C++ user, and have come to love functional programming for a very C++y reason: improved performance that comes from lock-free parallelizability (if you never modify values, you don't have to synchronize access).
But I also love the simplicity that comes from not having to think so deeply about lifetimes and which portions of code can see which objects in which states. The abstraction of data-structure from algorithm is nice, the terseness is nice, the regularity is nice, but it's the lifetime and visibility simplification that helps me the most.
I don't know Haskell or OCaml. I wouldn't know a monad if it slapped me in the face. But functional C++ makes me happy
- zem 11y agopony might make you happy too. here's a great presentation on it: https://cdn.rawgit.com/darach/my_little_pony/master/my-little-pony.html#/ https://cdn.rawgit.com/darach/my_little_pony/master/my-littl...