Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lazy operators #75

Open
amitu opened this issue Sep 16, 2015 · 1 comment
Open

lazy operators #75

amitu opened this issue Sep 16, 2015 · 1 comment

Comments

@amitu
Copy link
Owner

amitu commented Sep 16, 2015

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.

@ghost
Copy link

ghost commented Sep 16, 2015

Can it just be a ternary operator ❔

"one" if debug else "two"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant