3 ms·
Imperative languages allow you to write functional code, too, but it's clumsier. It's not the strength of the language. In the same way, sure, you can write i
by AnimalMuppet 4y ago
Imperative languages allow you to write functional code, too, but it's clumsier. It's not the strength of the language. In the same way, sure, you can write imperative code in a functional language. But ergonomically, it's not as nice as writing imperative code in an imperative language.
If you're code is going to be 90% imperative, don't write it in Haskell. If it's going to be 90% functional, don't write it in C++.