[PRL] laziness
Paul A. Steckler
steck at stecksoft.com
Wed Jun 23 13:36:52 EDT 2004
> So why is this a big win? In Scheme, at least, if expressions look
> exactly like function calls anyway; the only limitation is that I can't
> treat `if' as a value. But you'd be surprised how rarely I want to do
> that anyway (as opposed, say, to wanting to treat `and' and `or' as
> values).
In Haskell, of course, `if' is syntax, not a function,
because of the `then' and `else' tokens. You could
write a lambda wrapper around `if', if that's what
you really want.
-- Paul
More information about the PRL
mailing list