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

perform required initialization checks on late declarations #39

Open
jvasileff opened this issue Oct 16, 2016 · 2 comments
Open

perform required initialization checks on late declarations #39

jvasileff opened this issue Oct 16, 2016 · 2 comments

Comments

@jvasileff
Copy link
Owner

For the implementation, we could do one of the following:

  1. use a late indicator value (analogous to dartDefault) for uninitialized values, or
  2. do what the Java backend does: use null as the indicator value for non-optionals, and a separate Boolean for optionals.

For the first, we'd have to use Object as the type for the underlying value and add casts in exposed getters and setters, but that should be fine.

@jvasileff
Copy link
Owner Author

I consider this low priority since in no way will it impact adoption.

@jvasileff
Copy link
Owner Author

This also affects late + specified (memoized) for static and non-static members and toplevels.

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

1 participant