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

Provide TRUE and FALSE as public static LazyNumbers #265

Closed
mmorrisontx opened this issue Jun 9, 2021 · 2 comments
Closed

Provide TRUE and FALSE as public static LazyNumbers #265

mmorrisontx opened this issue Jun 9, 2021 · 2 comments

Comments

@mmorrisontx
Copy link

Implementing custom boolean LazyFunctions is a bit annoying at the moment, because each function (or project) needs to maintain its own copy of ONE and ZERO (similar to the example).

If EvalEx exposed a public LazyNumber instance for TRUE and FALSE (or ONE and ZERO?), it would make implementing custom LazyFunctions trivial, and in most cases they could just be a lambda.

@mmorrisontx
Copy link
Author

mmorrisontx commented Jun 9, 2021

Alternatively, a simpler abstract implementation of LazyFunction which needed a long lazyEval(lazyParams) rather than a LazyNumber lazyEval(List<LazyNumber> lazyParams), would also solve the problem.

@uklimaschewski
Copy link
Collaborator

Obsolete with version 3

@uklimaschewski uklimaschewski closed this as not planned Won't fix, can't repro, duplicate, stale Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants