DEV Community

Discussion on: Object-Oriented Programming Strikes Back!

Collapse
 
rubberduck profile image
Christopher McClellan

I'm not sure I can agree with your assertion that state transitions are less clean in FP. In OOP, we model state transitions by delegating to objects that perform an appropriate action for the current state. In FP we model state transitions by delegating to a function that performs an appropriate action for the given state. It's just two ways to skin the same cat.