Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
goless
3 months ago
|
parent
|
context
|
favorite
| on:
Polystate: Composable Finite State Machines
Yes, all my examples have state diagrams, they are automatically generated and are an effective way for me to understand the structure of the program.
irq-1
3 months ago
[–]
shouldn't the check pin example end with 'exit' rather than 'ready'?
.{ Atm.checkPin, Atm.session, Atm.ready } } }),
It was the diagram that made me think this.
goless
3 months ago
|
parent
[–]
Haha, this is just a demo, written casually, you can change this to exit, and then as you expected, the program will exit directly.
goless
3 months ago
|
root
|
parent
[–]
Try modifying it yourself, you will fall in love with this way of programming.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: