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

Dart language tour says local vars are lazy. #18671

Closed
lrhn opened this issue May 7, 2014 · 10 comments
Closed

Dart language tour says local vars are lazy. #18671

lrhn opened this issue May 7, 2014 · 10 comments
Assignees
Labels
P1 A high priority bug; for example, a single project is unusable or has many test failures
Milestone

Comments

@lrhn
Copy link
Member

lrhn commented May 7, 2014

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.

@kwalrath
Copy link
Contributor

kwalrath commented May 7, 2014

Set owner to @kwalrath.
Added Accepted label.

@sethladd
Copy link
Contributor

sethladd commented May 8, 2014

Thanks for the report!

@kwalrath
Copy link
Contributor

kwalrath commented Jun 4, 2014

Removed Area-Documentation label.
Added Area-Site label.

@sethladd
Copy link
Contributor

We probably want to fix this incorrect and misleading statement.


Added this to the 1.6 milestone.
Removed Priority-Unassigned label.
Added Priority-High label.

@kwalrath
Copy link
Contributor

It's been out a while, so it's not urgent


Removed this from the 1.6 milestone.
Added this to the 1.7 milestone.
Removed Priority-High label.
Added Priority-Medium label.

@kasperl
Copy link

kasperl commented Aug 6, 2014

Removed Priority-Medium label.
Added Priority-High label.

@kwalrath
Copy link
Contributor

kwalrath commented Aug 8, 2014

Added Started label.

@kwalrath
Copy link
Contributor

kwalrath commented Aug 8, 2014

@kwalrath
Copy link
Contributor

Added Fixed label.

@nicolasgarnier
Copy link
Contributor

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

@lrhn lrhn added Type-Defect P1 A high priority bug; for example, a single project is unusable or has many test failures labels Aug 26, 2014
@lrhn lrhn added this to the 1.7 milestone Aug 26, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 A high priority bug; for example, a single project is unusable or has many test failures
Projects
None yet
Development

No branches or pull requests

5 participants