Re:I want to fix programming
by jacktoole1 on Wednesday January 25, 2012 @04:58AM
(#3509136)
I love OCaml, but I would hardly call it a declarative language. You still describe the steps to perform an algorithm, rather than the result of the algorithm. The article poster references Haskell and explicitly says "The functional approach brings indeed several improvements over regular imperative or object-oriented programming. But still it’s not the solution."
The argument forwarded for considering them declarative is that their compilers perform transforms on the source code, and that there are no side-effects.
I certainly agree with your interpretation more. Typical functional programming isn't really declarative (though, yes, moreso than imperative programs are) and those waters shouldn't be muddied.
Erlang, Haskell and Ocaml are examples of declarative languages, and they all have been used to solve very real-sized problems: telecommunication switches, compilers, trading systems, a window manager, etc.
It amazes me how the argument above is still repeated (often followed by "but those systems don't count, give me an example of X".)