Update language tour for Dart 2 changes
Closed this issue · 9 comments
- Implicit new and const - lrn (dart-lang/sdk#30921) (partially fixed in #677)
- Support assert in initializers - rnystrom (dart-lang/sdk#30968) (fixed in #677)
- Fixed-sized integers limited to 64 bits - floitsch (dart-lang/sdk#28595, issue #591 ) (fixed in #677)
- Generalized void - eernst (dart-lang/sdk#30176) (fixed [partially?] in #677)
- Eliminate fuzzy arrows - leafp (dart-lang/sdk#29630)
- Start async functions synchronously - floitsch (fixed in #677)
- @Proxy & noSuchMethod (issue #442, pr #511)
- First arg to assert can't be a function (issue #572)
- Introduce generic syntax earlier (issue #588) (fixed in #677)
- Asserts in initializers
I'm working on the strong mode changes, which are pretty invasive.
This is so awesome to see!
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.
We should cover asserts in initializers (and probably beef up the initializer coverage a bit).
I'm starting on removing new
and const
.
I'm starting on removing
new
andconst
.
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!
I'm starting on removing
new
andconst
.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.)
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.