3 ms·
I wouldn't claim it excludes many languages. Prolog comes to mind. Imperative, to me, means a language structured over the execution of statements in order. I
by tel 13y ago
I wouldn't claim it excludes many languages. Prolog comes to mind.
Imperative, to me, means a language structured over the execution of statements in order. I think that's a fairly common definition.
- nbouscal 13y agoThat still sounds a little weak, but even under that definition, how does Haskell qualify? Do-notation may make things look like statements, but they are still expressions!
- tel 13y agoThey are statements in an embedded language modeled by the monad. The distinction isn't great. Monad allows the implementer to capture linear action if they like. That makes them at least powerful enough to embed Algol.