by austincheney · 7y ago · 0 comments
Even the Wikipedia article gets this wrong: https://en.wikipedia.org/wiki/Functional_programming
Functional imperative is the idea of using functions to define the shape of an application, which is to say the nesting of functions defines both the stacked structure and the resulting control flow opposed to describing units of logic or any sort of reflection.
https://en.wikipedia.org/wiki/Function_model#Functional_deco...
Functions indeed are mostly used to guide the flow of program and stack dialects on top of one another, so the resulting app is like a dedicated toolchain (or even a VM), where each component is a small interpreter or compiler.
Interesting. Monadic Haskell can be quite imperative if you want it to be, as can SML or OCaml. Scheme and Lisp have imperative parts too.
That's called not being functional. What distinction are you drawing between "functional imperative" and regular imperative languages?