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

Issue 1152483002: Add Iterable.empty constructor. (Closed)

Created:
5 years, 7 months ago by Lasse Reichstein Nielsen
Modified:
5 years, 7 months ago
Reviewers:
Søren Gjesse, kevmoo
CC:
reviews_dartlang.org
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add Iterable.empty constructor. Convenience constructor giving an easy/quick way to create an empty iterable. R=sgjesse@google.com Committed: https://github.com/dart-lang/sdk/commit/dcf0286f5385187a68ce9e66318d3bf19abf454b

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -1 line) Patch
M sdk/lib/core/iterable.dart View 1 1 chunk +11 lines, -0 lines 0 comments Download
M sdk/lib/internal/iterable.dart View 1 chunk +1 line, -1 line 0 comments Download
A tests/corelib/iterable_empty_test.dart View 1 1 chunk +72 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
Lasse Reichstein Nielsen
5 years, 7 months ago (2015-05-21 08:20:41 UTC) #2
Søren Gjesse
lgtm https://codereview.chromium.org/1152483002/diff/1/sdk/lib/core/iterable.dart File sdk/lib/core/iterable.dart (right): https://codereview.chromium.org/1152483002/diff/1/sdk/lib/core/iterable.dart#newcode111 sdk/lib/core/iterable.dart:111: * the iterable you would otherwise is always ...
5 years, 7 months ago (2015-05-21 09:10:06 UTC) #3
kevmoo
DCQ https://codereview.chromium.org/1152483002/diff/1/sdk/lib/core/iterable.dart File sdk/lib/core/iterable.dart (right): https://codereview.chromium.org/1152483002/diff/1/sdk/lib/core/iterable.dart#newcode113 sdk/lib/core/iterable.dart:113: const factory Iterable.empty() = EmptyIterable<E>; Why is this ...
5 years, 7 months ago (2015-05-21 15:07:06 UTC) #5
Lasse Reichstein Nielsen
https://codereview.chromium.org/1152483002/diff/1/sdk/lib/core/iterable.dart File sdk/lib/core/iterable.dart (right): https://codereview.chromium.org/1152483002/diff/1/sdk/lib/core/iterable.dart#newcode113 sdk/lib/core/iterable.dart:113: const factory Iterable.empty() = EmptyIterable<E>; Because const[] is a ...
5 years, 7 months ago (2015-05-21 15:16:51 UTC) #6
kevmoo
On 2015/05/21 15:16:51, Lasse Reichstein Nielsen wrote: > https://codereview.chromium.org/1152483002/diff/1/sdk/lib/core/iterable.dart > File sdk/lib/core/iterable.dart (right): > > ...
5 years, 7 months ago (2015-05-21 16:05:08 UTC) #7
Lasse Reichstein Nielsen
Committed patchset #2 (id:20001) manually as dcf0286f5385187a68ce9e66318d3bf19abf454b (presubmit successful).
5 years, 7 months ago (2015-05-22 08:40:02 UTC) #8
kevmoo
5 years, 7 months ago (2015-05-23 00:20:23 UTC) #9
Message was sent while issue was closed.
On 2015/05/22 08:40:02, Lasse Reichstein Nielsen wrote:
> Committed patchset #2 (id:20001) manually as
> dcf0286f5385187a68ce9e66318d3bf19abf454b (presubmit successful).

Please add an entry to the CHANGELOG, too. :-)

Powered by Google App Engine
This is Rietveld 408576698