News for hackers. Stuff that matters.
Re:Why Developers Never Use State Machines (2011) by jpitz on Monday February 26, 2018 @10:38PM (#16470900)
The argument is not that state machines are the child of FP, just that a common idiom in FP, Pattern Matching over ADTs, makes them easy to implement.
Re:Why Developers Never Use State Machines (2011) by seanmcdirmid on Monday February 26, 2018 @10:45PM (#16470927)
This might be, but state machines are so common in imperative code, you could say they are common idiom there also. Pattern matching over ADTs only drives transitions; different representation of transitions can lead to different constructs being more convenient (e.g. if your transitions are just based on a finite set of values, you can use just dictionaries).
Re:Why Developers Never Use State Machines (2011) by jpitz on Monday February 26, 2018 @10:59PM (#16470987)
That could very well be. My brain tends to map problems to ADTs with very low friction.