I was looking at the Reactive Programming course from Coursera, which uses Scala to implement an Observer pattern. There, Martin Odersky says that the Observer pattern forces Imperative Programming, which we can see because the subscriber's handlers have Unit
type.
He is saying that here: https://class.coursera.org/reactive-002/lecture/107 At 9:40
I don't really understand:
1.Why do the handlers need to have Unit
type?
2.How is the Observer pattern forcing Imperative Programming?