3 ms·
Imperative code is structured with ; that terminate statements. var foo = 42; Functional code is structured with () that composes function calls. foo(bar(42))
by dustingetz 7y ago
Imperative code is structured with ; that terminate statements. var foo = 42;
Functional code is structured with () that composes function calls. foo(bar(42))
All else equal, composition has more interesting structure, which is very helpful for reasoning e.g. flow and dependency graph