What is the difference between Reactive and Functional-Reactive programming?

Technology CommunityCategory: Reactive ProgrammingWhat is the difference between Reactive and Functional-Reactive programming?
VietMX Staff asked 3 years ago

FRP is a combination of Functional programming (programming paradigm built upon the idea of everything is a pure function) and reactive programming paradigm (built upon the idea that everything is a stream (observer and observable philosophy)). It is supposed to be the best of the worlds.

In pure functional programming, there are no side-effects. For many types of software (for example, anything with user interaction) side-effects are necessary at some level. One way to get side-effect like behavior while still retaining a functional style is to use functional reactive programming.