Skip to content

Val should not extends Lazy by default #319

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

Open
He-Pin opened this issue Apr 25, 2025 · 0 comments
Open

Val should not extends Lazy by default #319

He-Pin opened this issue Apr 25, 2025 · 0 comments

Comments

@He-Pin
Copy link
Contributor

He-Pin commented Apr 25, 2025

I know the Lazy is used for optimize performance, but the:

  • Boolean.FALSE
  • Boolean.TRUE
  • Null

are constant values, but now it has a cached field value from the Lazy.

I think a better result is that we have an interface for value, eg:

  • trait Eval
  • trait CoEval extends Eval
  • trait LazyEval extends Eval

We can rename the Lazy to LazyEval.

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