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
Dart language tour says local vars are lazy. #18671
Comments
Thanks for the report! |
Removed Area-Documentation label. |
We probably want to fix this incorrect and misleading statement. Added this to the 1.6 milestone. |
It's been out a while, so it's not urgent Removed this from the 1.6 milestone. |
Removed Priority-Medium label. |
Added Started label. |
CL in review: https://chromiumcodereview.appspot.com/453093005/ |
Added Fixed label. |
This issue has been moved to Github as part of a migration. Please use the Issue on Github going forward: https://github.com/dart-lang/dartlang.org/issues |
in https://www.dartlang.org/docs/dart-up-and-running/contents/ch02.html#ch02-final-const
in section "Final and Const" it says: "A local, top-level, or class variable that’s declared as final is initialized the first time it’s used:", but a local variable is initialized when it is declared, not when it is used (it is not lazy like top-level or static fields).
It should probably just not mention local variables here.
The text was updated successfully, but these errors were encountered: