3 ms·
Actually, everything is imperative at the end of the day because the processor executes instructions in a certain order. "Declarative" is a style abstraction l
by dtagames 4y ago
Actually, everything is imperative at the end of the day because the processor executes instructions in a certain order.
"Declarative" is a style abstraction like other abstraction words (file, database, server, etc) that don't define anything by themselves. When code is actually run on a processor, that code is strictly imperative.
Any "declarative" code (like pure HTML) involves thousands of lines of tests and branches when it is actually run. It follows the input-process-output model like all programming.
I think we have lots of style wars in programming because many people don't know or don't think about how the physical components like processors and storage actually operate.