Builtins.lazy for lazy arguments

I started the thread Lazy evaluation of expressions and thought I was doing the right thing by not hijacking an existing thread with a different, though related, idea. Happy to change discussion to this thread if that is what people prefer?

TLDR The idea is that if you type a variable/argument/return as Lazy and then an expression writing to it is automatically wrapped with Lazy(lambda <expr> and when read it is automatically unwrapped. There is no implementation to try.

The main issue under discussion on the other thread is that assuming it can be implemented, would people want it and would the Core Devs support it or would it be deemed undesirable even if demonstrated to work?

So two questions: should discussion be on this thread and if implemented would the idea be supported?

1 Like