Eliminate assert and lazy from D?

Michel Fortin michel.fortin at michelf.com
Tue Oct 13 04:38:34 PDT 2009


On 2009-10-13 02:44:52 -0400, Frank Benoit <keinfarbton at googlemail.com> 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
michel.fortin at michelf.com
http://michelf.com/




More information about the Digitalmars-d mailing list