4 ms·
> admit that functional programming is the wrong paradigm for some types of problems. Absolutely. Some problems are just so much simpler in an imperative style
by nicolashahn 6y ago
> admit that functional programming is the wrong paradigm for some types of problems.
Absolutely. Some problems are just so much simpler in an imperative style that it's worth the lack of confidence you get with the functional solution in its correctness and robustness.
That's why I love languages that have fairly powerful functional features but have an imperative escape hatch. I think more and more languages are becoming that. Rust does it very well, but the lisps, probably Scala, and a few others I'm not thinking of may be better, don't have much experience with those though.
- voodootrucker 6y agoRust is good, Kotlin is the best I've seen at it.
- emteycz 6y agoIMHO TypeScript is getting really good now, in the 4.1.
- bigyikes 6y agoTypeScript is such a joy to work with. It captures the ease-of-use of JS but erases many of the wat-isms associated with it.