From State tennis to endomorphism

added by DotNetKicks
5/31/2021 3:01:48 PM

582 Views

You can refactor the State pattern to pure functions. In a previous article you saw how to do the Tennis kata with the State design pattern. Like most other patterns in Design Patterns, the State pattern relies on mutation. If you favour functional programming and immutable data, you may not like that.


0 comments