Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Issue 27523002: Add "deprecated" to the standard library. (Closed)

Created:
7 years, 2 months ago by Lasse Reichstein Nielsen
Modified:
7 years, 2 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org, kasperl, bakster
Visibility:
Public.

Description

Add "deprecated" to the standard library. If the editor supports it, we should have a declaration in the standard library. I suggest a separte dart:annotation library. It may grow in the future. Alternatively it can be put in dart:core. R=bak@google.com Committed: https://code.google.com/p/dart/source/detail?r=29166

Patch Set 1 #

Total comments: 1

Patch Set 2 : More details in implementing a VM library. #

Patch Set 3 : Put annoatations in dart:core. Add documentation. #

Total comments: 1

Patch Set 4 : Added public Deprecated constructor with "expires" parameter. Reformatted docs. #

Total comments: 1

Patch Set 5 : Made it explicit that the library doesn't use @override. #

Patch Set 6 : Updated toString message for Deprecated. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -66 lines) Patch
M pkg/meta/lib/meta.dart View 1 2 3 chunks +5 lines, -26 lines 0 comments Download
M sdk/lib/_collection_dev/iterable.dart View 1 chunk +0 lines, -29 lines 0 comments Download
A sdk/lib/core/annotations.dart View 1 2 3 4 5 1 chunk +104 lines, -0 lines 0 comments Download
M sdk/lib/core/core.dart View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/core/corelib_sources.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/html/dartium/html_dartium.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M sdk/lib/html/html_common/html_common.dart View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M sdk/lib/html/html_common/html_common_dart2js.dart View 1 2 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Lasse Reichstein Nielsen
The optional message argument can be dropped for now, and the class made private.
7 years, 2 months ago (2013-10-16 14:40:32 UTC) #1
floitsch
FYI. Not sure yet about dart:annotate. https://codereview.chromium.org/27523002/diff/1/sdk/lib/html/html_common/html_common_dart2js.dart File sdk/lib/html/html_common/html_common_dart2js.dart (right): https://codereview.chromium.org/27523002/diff/1/sdk/lib/html/html_common/html_common_dart2js.dart#newcode26 sdk/lib/html/html_common/html_common_dart2js.dart:26: const deprecated = ...
7 years, 2 months ago (2013-10-16 14:46:28 UTC) #2
Brian Wilkerson
> If the editor supports it, we should have a declaration in the standard library. ...
7 years, 2 months ago (2013-10-16 15:00:00 UTC) #3
ahe
I strongly object to adding a deprecated annotation to the Dart platform without having it ...
7 years, 2 months ago (2013-10-16 15:07:09 UTC) #4
dgrove
On 2013/10/16 15:07:09, ahe wrote: > I strongly object to adding a deprecated annotation to ...
7 years, 2 months ago (2013-10-16 15:10:04 UTC) #5
Lasse Reichstein Nielsen
On 2013/10/16 15:07:09, ahe wrote: > I strongly object to adding a deprecated annotation to ...
7 years, 2 months ago (2013-10-17 05:57:33 UTC) #6
Lasse Reichstein Nielsen
On 2013/10/16 15:00:00, Brian Wilkerson wrote: > The editor does support it, but because there ...
7 years, 2 months ago (2013-10-17 06:00:52 UTC) #7
kevmoo-old
DBC See https://code.google.com/p/dart/issues/detail?id=6773 :: package:meta -> dart:meta Although I'm happy with dart:annotation +1 for having ...
7 years, 2 months ago (2013-10-17 11:39:33 UTC) #8
Sean Eagan
On 2013/10/16 14:40:32, Lasse Reichstein Nielsen wrote: > The optional message argument can be dropped ...
7 years, 2 months ago (2013-10-18 14:14:10 UTC) #9
Lasse Reichstein Nielsen
Moved annotations to dart:core. Keep it simple: No parameters, just a single constant. Extra documentation ...
7 years, 2 months ago (2013-10-23 14:30:03 UTC) #10
ahe
https://codereview.chromium.org/27523002/diff/51001/sdk/lib/core/annotations.dart File sdk/lib/core/annotations.dart (right): https://codereview.chromium.org/27523002/diff/51001/sdk/lib/core/annotations.dart#newcode74 sdk/lib/core/annotations.dart:74: const override = const _Override(); This is not OK. ...
7 years, 2 months ago (2013-10-23 14:32:54 UTC) #11
gbracha
AFICR, we decided at the last language meeting that we would have a class Deprecated ...
7 years, 2 months ago (2013-10-23 21:29:20 UTC) #12
Lasse Reichstein Nielsen
I believe Peter's opposition is mainly wrt. @override. Should I move that back to package:meta?
7 years, 2 months ago (2013-10-24 07:49:57 UTC) #13
Lasse Reichstein Nielsen
Now exposes Deprecated as constructor, per discussion with language team.
7 years, 2 months ago (2013-10-24 10:42:02 UTC) #14
bakster
LGTM, Lars https://codereview.chromium.org/27523002/diff/121001/sdk/lib/core/annotations.dart File sdk/lib/core/annotations.dart (right): https://codereview.chromium.org/27523002/diff/121001/sdk/lib/core/annotations.dart#newcode72 sdk/lib/core/annotations.dart:72: String toString() => "Deprecated until $expires"; "Deprecated ...
7 years, 2 months ago (2013-10-24 10:55:24 UTC) #15
Lasse Reichstein Nielsen
7 years, 2 months ago (2013-10-24 11:47:12 UTC) #16
Message was sent while issue was closed.
Committed patchset #6 manually as r29166 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698