[plt-scheme] CPS and state machines
> Jens Axel Søgaard wrote:
>
>You might find Shriram's "The Swine before the Perl" fun to read -
>although it doesn't answer your question.
Yep, liked it alot. The thing is that I need to execute certain actions
upon transitioning to a new state. I guess I could add actions to each
state in the example but I thought it would be more elegant with
continuations.
>I'll second Neil's advice to write a simple working implementation
>first, and then worry about speed later - if you need it at all.
I sort of stopped worrying about speed for now but I do need to pick a
state machine architecture. I think that CPS is very fitting.
Thanks, Joel
--
OpenPoker: The Linux of poker software
http://wagerlabs.com/forums