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

Update language tour for Dart 2 changes #507

Closed
9 of 10 tasks
kwalrath opened this issue Jan 11, 2018 · 9 comments
Closed
9 of 10 tasks

Update language tour for Dart 2 changes #507

kwalrath opened this issue Jan 11, 2018 · 9 comments
Assignees
Labels
a.language Relates to the Dart language tour
Milestone

Comments

@kwalrath
Copy link
Contributor

kwalrath commented Jan 11, 2018

@kwalrath kwalrath added the a.language Relates to the Dart language tour label Jan 11, 2018
@kwalrath kwalrath added this to the 2-dev milestone Jan 11, 2018
@kwalrath kwalrath self-assigned this Jan 11, 2018
@kwalrath kwalrath added the p1-high Major but not urgent concern: Resolve in months. Update each month. label Mar 13, 2018
@kwalrath
Copy link
Contributor Author

I'm working on the strong mode changes, which are pretty invasive.

kwalrath added a commit that referenced this issue Mar 15, 2018
kwalrath added a commit that referenced this issue Mar 15, 2018
@sethladd
Copy link

This is so awesome to see!

kwalrath added a commit that referenced this issue Mar 17, 2018
* Dart 2 changes to language tour

Contributes to #507
@kwalrath
Copy link
Contributor Author

I don't know how to update the language tour for fuzzy arrows, so I'll be contacting @leafpetersen. We expect to start using implicit new/const everywhere for beta 3.

@kwalrath kwalrath modified the milestones: 2-beta2, 2-beta3 Mar 19, 2018
@kwalrath kwalrath removed the p1-high Major but not urgent concern: Resolve in months. Update each month. label Mar 19, 2018
@chalin chalin modified the milestones: 2-beta3, 2-beta4 May 3, 2018
@kwalrath
Copy link
Contributor Author

We should cover asserts in initializers (and probably beef up the initializer coverage a bit).

@kwalrath
Copy link
Contributor Author

kwalrath commented Jun 9, 2018

I'm starting on removing new and const.

@chalin
Copy link
Contributor

chalin commented Jun 9, 2018

I'm starting on removing new and const.

There is a PR pending for that: Remove all uses of "new" and "const" from "Effective Dart" #844. In particular, note this comment: #844 (comment). If we have the green light to go ahead with this, then great!

@kwalrath
Copy link
Contributor Author

kwalrath commented Jun 11, 2018

I'm starting on removing new and const.

There is a PR pending for that: Remove all uses of "new" and "const" from "Effective Dart" #844. In particular, note this comment: #844 (comment). If we have the green light to go ahead with this, then great!

Because Flutter's style (at least within constructors) is not to use new, I've been asked to avoid new whenever possible. The bar for Effective Dart is higher, because it sets conventions used everywhere. (I suppose you could say the same for the language tour, but it does cover new, and I don't think people copy-paste its code as much as they do from more focused docs.)

@kwalrath
Copy link
Contributor Author

Implicit new and const are covered. I don't think we need to cover fuzzy arrows, but I should probably still add an example of an assert in an initializer.

@kwalrath
Copy link
Contributor Author

#677 added an example of using assert in an initializer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a.language Relates to the Dart language tour
Projects
None yet
Development

No branches or pull requests

3 participants