
17 Sep
2007
17 Sep
'07
12:37 p.m.
On Mon, 17 Sep 2007, Neil Mitchell wrote:
Hi
case e of b { pati -> rhsi }
* evaluates 'e', * binds the resulting value to 'b', * performs case analysis on the result to find which alternative to choose * binds the variables of the pattern to the components of the value
The Yhc.Core translator converts this to:
let b = e in case b of { pati -> rhsi }
I'm not sure if that would be a clearer form for you to work with, as it is closer to standard Haskell.
Definitely not, let allocates. -- flippa@flippac.org There is no magic bullet. There are, however, plenty of bullets that magically home in on feet when not used in exactly the right circumstances.