Site-www: Remove new & const (most) everywhere

Created on 15 May 2018  路  5Comments  路  Source: dart-lang/site-www

  • [x] Update language tour to avoid using new/const except where necessary. #507
  • [x] Add optional new/const to /dart-2. #945
  • [x] Update all tested code samples to NOT use new/const unless absolutely necessary. #966
  • [x] Remove all uses of "new" and "const" from "Effective Dart". #844
Dart2 p2-medium

All 5 comments

We've updated all tested code samples, which means all of the most used/updated pages. @chalin, do you know whether everything else that might contain new and const is marked as obsolete?

do you know whether everything else that might contain new and const is marked as obsolete?

No, I don't know.

I'm checking now to ensure that pages that need to be are marked as (potentially) out-of-date (using obsolete: true).

A few extra pages needed to be marked as obsolete, see #973.

The analyzer is checking for unnecessary_const and unnecessary_new in all examples (#1026). No issues are reported, so I'd say that we're done!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

feinstein picture feinstein  路  4Comments

kwalrath picture kwalrath  路  4Comments

sarahec picture sarahec  路  3Comments

dev-aentgs picture dev-aentgs  路  5Comments

kwalrath picture kwalrath  路  5Comments