It is totally based on functions. | It is totally based on formal logic. |
In this programming paradigm, programs are constructed by applying and composing functions. | In this programming paradigm, program statements usually express or represent facts and rules related to problems within a system of formal logic. |
These are specially designed to manage and handle symbolic computation and list processing applications. | These are specially designed for fault diagnosis, natural language processing, planning, and machine learning. |
Its main aim is to reduce side effects that are accomplished by isolating them from the rest of the software code. | Its main aim is to allow machines to reason because it is very useful for representing knowledge. |
Some languages used in functional programming include Clojure, Wolfram Language, Erland, OCaml, etc. | Some languages used for logic programming include Absys, Cycl, Alice, ALF (Algebraic logic functional programming language), etc. |
It reduces code redundancy, improves modularity, solves complex problems, increases maintainability, etc. | It is data-driven, array-oriented, used to express knowledge, etc. |
It usually supports the functional programming paradigm. | It usually supports the logic programming paradigm. |
Testing is much easier as compared to logical programming. | Testing is comparatively more difficult as compared to functional programming. |
It simply uses functions. | It simply uses predicates. Here, the predicate is not a function i.e., it does not have a return value. |