2

Today, I read, "... in an imperative programming setting, a := b + c would mean that a is being assigned the result of b + c in the instant the expression is evaluated, and later, the values of b and c can be changed with no effect on the value of a. On the other hand, in reactive programming, the value of a is automatically updated whenever the values of b or c change, without the program having to re-execute the statement a := b + c to determine the presently assigned value of a." in Wikipedia

Does this mean that reactive programming is going back to passing by reference?

1 Answer 1

1

Reactive programming doesn't pass data by reference, in the contrary it is an anti-pattern in Functional Reactive Programing.

The reason why the value of a is automatically updated whenever the values of b or c change, is because it's implementing the Observer pattern

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.