Ok, I have been working through the book "School of expression", and have
been enjoying it alot. And I am almost finished with it (so to speak, of
course I would have to go back it!). In any event, the FAL stuff in this
book (a simplified FRAN ...) had been the hardest. In fact I skipped that
section and when on to the Haskore stuff (GREAT FUN!, I am going back to
do more of that :).
Anyway, the FAL stuff is pretty difficult for me. That is what prompted
my question RE: GetContents about channels. That came up in the
implementation of FAL and struck me (and still does) as very NON
functional. But anyway, now I am trying to play with Ex. 15.1 (the
paddleball game) in the book. Anyone out there have any nice solutions? I
found this FAL hard to think about. For example, when I first tried to
implement pausing, I could not get it to work because it took me a while
to realize that when I recursively call a behavior, it starts over from
the beginning. I mean I knew that, but I didnt really internalize what it
meant :) Also, I really wanted a function to filter events, but could not
think of how to do that. For example, the `key :: Event Char` I would love
to turn into `pushedthePkey :: Event ()`. In the end I found a work
around, but still. I could write something at the level of the
implementation, but I wonder if it can be elegantly done just with the
stuff already defined.
So what was this all about? Is anyone else out there (not a student in
a class using this book!) also working through SOE? Want to discuss it?
+++++++++++++++++++++++++++++++++++++++++++++++++
Ron Legere -- http://www.its.caltech.edu/~legere
Caltech Quantum Optics
MC 12-33
Pasadena CA 91125
626-395-8343
FAX: 626-793-9506
+++++++++++++++++++++++++++++++++++++++++++++++++