4 ms·
Pure functional programming is (IMO) more of a style than a language phylum. One can (and I can argue should) write C++ in a pure functional style, esp. now wi
by pklausler 6y ago
Pure functional programming is (IMO) more of a style than a language phylum. One can (and I can argue should) write C++ in a pure functional style, esp. now with C++17 having sum types.
- throwaway894345 6y agoI agree with this. Functional programming concepts (iterators, stream processing, sum types, first class functions, etc) have made significant inroads into almost every popular programming language: * C++ * Python * JavaScript * Java * C# * Rust
- wtetzner 6y agoC++17 has sum types?
- pklausler 6y agoYou bet; see std::variant<>. Great for closed-world polymorphism with compilation-time checking of completeness!