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

Issue 288103003: Change Set.toSet to always return a set with the same behavior. (Closed)

Created:
6 years, 7 months ago by Lasse Reichstein Nielsen
Modified:
6 years, 7 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

The toSet operation returns a new Set with the same equality and iteration behavior, and with the same elements. R=floitsch@google.com, jmesserly@google.com, sgjesse@google.com Committed: https://code.google.com/p/dart/source/detail?r=36473

Patch Set 1 #

Patch Set 2 : Change .clone() to use .toSet(). Update docs. #

Total comments: 2

Patch Set 3 : TYpo #

Patch Set 4 : Remove cloneEmpty from CL. It's just toSet now, returning a "Set of the same type". #

Patch Set 5 : Update html5lib pubspec version to 0.12.0-dev #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -7 lines) Patch
M pkg/collection/lib/wrappers.dart View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M pkg/collection/pubspec.yaml View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M pkg/third_party/html5lib/pubspec.yaml View 1 2 3 4 1 chunk +1 line, -1 line 2 comments Download
M sdk/lib/_internal/compiler/implementation/helpers/expensive_set.dart View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/util/setlet.dart View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
M sdk/lib/collection/splay_tree.dart View 1 2 3 4 chunks +5 lines, -3 lines 0 comments Download
M sdk/lib/core/iterable.dart View 1 2 chunks +14 lines, -1 line 0 comments Download
M sdk/lib/core/set.dart View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M tests/corelib/set_test.dart View 1 2 3 5 chunks +57 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
Lasse Reichstein Nielsen
6 years, 7 months ago (2014-05-15 12:59:24 UTC) #1
floitsch
Implementation LGTM, but why do we need this? Isn't toSet() enough? Do we start to ...
6 years, 7 months ago (2014-05-15 14:08:31 UTC) #2
Lasse Reichstein Nielsen
I changed clone to just using .toSet() and updated the toSet documentation to promise that ...
6 years, 7 months ago (2014-05-19 07:30:05 UTC) #3
floitsch
As discussed in person: I don't think the Set should have this method. However, a ...
6 years, 7 months ago (2014-05-19 13:08:14 UTC) #4
Jennifer Messerly
dart/pkg html impl changes LGTM. My random opinion, it's kinda nice to have the ability ...
6 years, 7 months ago (2014-05-19 17:44:42 UTC) #5
Lasse Reichstein Nielsen
I've remove cloneEmpty for now. I'll see if I can make a useful SetMixin without ...
6 years, 7 months ago (2014-05-21 12:55:16 UTC) #6
Søren Gjesse
lgtm
6 years, 7 months ago (2014-05-22 07:45:01 UTC) #7
Lasse Reichstein Nielsen
Committed patchset #5 manually as r36473 (presubmit successful).
6 years, 7 months ago (2014-05-22 08:30:12 UTC) #8
Siggi Cherem (dart-lang)
https://codereview.chromium.org/288103003/diff/80001/pkg/third_party/html5lib/pubspec.yaml File pkg/third_party/html5lib/pubspec.yaml (right): https://codereview.chromium.org/288103003/diff/80001/pkg/third_party/html5lib/pubspec.yaml#newcode2 pkg/third_party/html5lib/pubspec.yaml:2: version: 0.12.0-dev Just so you know so you are ...
6 years, 7 months ago (2014-05-23 21:59:31 UTC) #9
Lasse Reichstein Nielsen
6 years, 7 months ago (2014-05-23 22:09:27 UTC) #10
Message was sent while issue was closed.
https://codereview.chromium.org/288103003/diff/80001/pkg/third_party/html5lib...
File pkg/third_party/html5lib/pubspec.yaml (right):

https://codereview.chromium.org/288103003/diff/80001/pkg/third_party/html5lib...
pkg/third_party/html5lib/pubspec.yaml:2: version: 0.12.0-dev
Ack, yes, my mistake.
I forgot I changed the version number.

Powered by Google App Engine
This is Rietveld 408576698