DEV Community

Discussion on: Declarative Programming with JavaScript

Collapse
 
danacoding profile image
DanaCoding

So, can imperative style be called "loose style"; can declarative style be called "functional style"

Collapse
 
bart76 profile image
Bart76

Functional programming is a particular kind of declarative programming paradigm. Functional programming is somewhat more strict than declarative programming in general, I guess. Therefore, not all declarative programming paradigms can be considered to be functional programming paradigms as well.

I would personally avoid the term "loose style", because (afaik) it is not a common term in this context and you would need to explain why you would call it "loose" every time somebody else would be confronted with it. If you would use the term "loose style" in a conversation about programming paradigms with me, I would probably not understand what you mean until you would explicitly clarify it or provide some concrete examples.