Well, that's not quite how I think of these constructs.
To me, imperative programming defines a series of steps for the computer to execute. Declarative programming describes the state of the world through a series of assertions.
Functional programming, OTOH, focuses on eliminating side effects – i.e., not altering global state.
1 comment
[ 3.1 ms ] story [ 14.8 ms ] threadTo me, imperative programming defines a series of steps for the computer to execute. Declarative programming describes the state of the world through a series of assertions.
Functional programming, OTOH, focuses on eliminating side effects – i.e., not altering global state.