On 2009-10-13 02:44:52 -0400, Frank Benoit <[email protected]> said:
I mean if you call a function and you did not know the argument is lazy,
it may have strange effects. This is why i would avoid lazy. I think the
callers code should have the noticeable different syntax, and we already
have that with the curly braces.
Hum, side effects...
I'm thinking lazy makes more sense if it was forcing the expression to
be pure. With provably no side effects, this would make lazy a good
optimization technique you can opt-in whenever you need to.
--
Michel Fortin
[email protected]
http://michelf.com/