30

I'm curious, why do you think they used the name "Behavior" for the BehaviorSuject object in Ractive Extensions?

note: a behavior subject returns the last value (or the init vaue) as the first value to any subscriber.

Nestor
  • 13,706
  • 11
  • 78
  • 119

1 Answers1

47

In the world of functional reactive programming, a behavior is a value that changes over time. This is exactly what a BehaviorSubject represents: when you subscribe you get the current value, and then you can continue to observe the changes. See http://en.wikipedia.org/wiki/Functional_reactive_programming.

Bart De Smet
  • 486
  • 5
  • 2