importd icon indicating copy to clipboard operation
importd copied to clipboard

lazy operators

Open amitu opened this issue 10 years ago • 1 comments

I want to be able to do:

from importd import d, debug

d(
    SOMETHING_ELSE="foo" + debug("one", prod="two")
)

As of now this leads to an exception. importd.DValue can implement ADD/MUL/SUB/NOT etc operator, and do it lazily.

amitu avatar Sep 16 '15 12:09 amitu

Can it just be a ternary operator :grey_question:

"one" if debug else "two"

ghost avatar Sep 16 '15 16:09 ghost