3 ms·
You can write declarative code in an imperative language, and you can write non-declarative code in a functional language (eg IO monad). So IMO they can’t be re
by manmal 4y ago
You can write declarative code in an imperative language, and you can write non-declarative code in a functional language (eg IO monad). So IMO they can’t be related.
That’s assuming that „declarative“ means „describing outcomes rather than describing process“.
- epgui 4y agoYou can write functional code in an imperative language and you can write imperative code in a language like Haskell, but that’s irrelevant.