Re: lazy is broken, but we have delegates

2012-04-29 Thread deadalnix
Le 30/04/2012 00:03, Peter Alexander a écrit : So, in short, all expressions have an implicit conversion to 'typeof(Expression) delegate()'. Seems reasonable at first glance, although I get the feeling it will have nasty edge cases. Implicit conversions generally do seem to cause trouble. Yes,

Re: lazy is broken, but we have delegates

2012-04-29 Thread Peter Alexander
So, in short, all expressions have an implicit conversion to 'typeof(Expression) delegate()'. Seems reasonable at first glance, although I get the feeling it will have nasty edge cases. Implicit conversions generally do seem to cause trouble.

lazy is broken, but we have delegates

2012-04-29 Thread deadalnix
OK, many people seems to want lazy to go. it is understandable : the feature is broken. lazy imply computation inside the function, but it is impossible to ensure anything about that computation (is it pure ? is it nothrow ? is it @safe, etc . . .). In fact, to be usefull, lazy need to be abl