Hi,

Yesterday I read this article [1] on asynchronous UI workflows in F#.
Basically, taking a sequential set of steps in a UI that would
normally be spread across a bunch of event handlers, and making it
look like sequential code in one place. So tonight I took a stab at
implementing something like this in Seesaw. Here's what I came up
with:

   https://gist.github.com/1055523

The top half is the implementation. The bottom half has three dumb
example workflows.

This definitely stretched my macro powers. If anyone can provide
feedback on ways to improve it, make it more composable, make it more
clojury, etc, I'd really appreciate it. Is this pattern already
implemented better somewhere else? Is it a monad or something? How
would you change it?

At the moment, I think it's usable, but potentially confusing and I
don't like how you have to nest another level at each step in the
sequence.

Thanks!

Dave


[1] 
http://dotnetslackers.com/articles/net/Programming-user-interfaces-using-f-sharp-workflows.aspx#1478

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to