STG to JavaScript translation
Philippa Cowderoy
flippa at flippac.org
Mon Sep 17 12:37:04 EDT 2007
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 at 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.
More information about the Glasgow-haskell-users
mailing list