Slide 13
Slide 13 text
Callbacks, Futures, Observables
• Do not fit well with the structure of imperative code
• Functions created by sequences of statements
• With complex control logic (ifs, fors, try-catchs)
• Futures and Reactive Streams (Observables)
• Function composition and not statement sequences
• E.g. map, flatMap, zip
• Impose a different programming style