|
|
|
|
|
by camus
4819 days ago
|
|
so what would be declarative programming ? does it even exist? i mean, at some point you need to write some logic , and logic is imperative.
Let's take a html file. It is declarative. but the underlying logic is written somewhere else. so you cant really have pure declarative programming? if it is possible how ? |
|
In the case of map/reduce, if these functions are implemented in your language (say in jquery) then its not declarative as your implementation is still being specified. If you are actually talking to your environment in terms of map/reduce, then those methods are declarative. On the other hand, if we consider jquery as a part of our environment, perhaps it does make sense to consider it declarataive?