摘要: While it's powerful enough to have Machine.transition, it can get tedious constantly passing it a state and an event. It would be nice if we had a fun 阅读全文
posted @ 2020-01-18 22:45 Zhentiw 阅读(157) 评论(0) 推荐(0)
摘要: numerating the possible states of a function is a sound way to write a function, but it is imperative and could benefit from abstraction. We can do th 阅读全文
posted @ 2020-01-18 17:35 Zhentiw 阅读(163) 评论(0) 推荐(0)
摘要: There are several fundamental problems with trying to manage the state of a function through the use of booleans. The first is often referred to as "b 阅读全文
posted @ 2020-01-18 17:11 Zhentiw 阅读(369) 评论(0) 推荐(0)