Functional Turtle¶
Data is immutable
Client has to create the state and pass it into a functio and get the new state back -> The client is involved in managing the state
Functions now return the state, and can be composed !
Pythonic¶
Pure¶
API¶
Overall¶
Pros: - Immutability : easier to reason about - Stateless: Easier to test - Fcuntions are composable
Cons: - client has to keep track fo the state - Hardc oded dependencies