4 ms·
For me, there are only two benefits to declarative programming: Safety and quick Understandability of code. I would say that markup languages fall into this cat
by EGreg 6y ago
For me, there are only two benefits to declarative programming: Safety and quick Understandability of code. I would say that markup languages fall into this category (HTML, Markdown etc.)
Everything else is better to be done by some sort of imperative language. The declarative stuff can be a subset and a convention but you can always break out of it.
- carapace 6y agoI see it almost the opposite way: now that the machines are so powerful you should prefer the higher-level declarative languages (like Prolog!) unless and until you need the efficiency that imperative languages can unlock.