Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'd hesitate to call imperative the antithesis of FP:

It's imperative vs declarative - FP is on a different level of abstraction, as a sibling to, let's say, logic programming.



I'd hesitate to say that FP is on the same level as logic programming, or to say that it is declarative.

It really depends on what you mean by FP. If you refer to lambda-calculus or to say, the head/tail decomposition so common in FP, then those are inherently sequential and not really declarative. If you refer to functors / monads, then you're on to something, but then again, OOP doesn't really imply imperative.


>It's imperative vs declarative

Good point, I think the common tendency to refer to procedural programming as either procedural or imperative interchangeably got me doing the same thing with functional and declarative.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: