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

Issue 11931042: Move many iterable classes to collection_dev. (Closed)

Created:
7 years, 11 months ago by floitsch
Modified:
7 years, 11 months ago
CC:
reviews_dartlang.org, Anders Johnsen
Visibility:
Public.

Description

Move many iterable classes to collection_dev. Committed: https://code.google.com/p/dart/source/detail?r=17276

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+241 lines, -227 lines) Patch
M runtime/vm/object.cc View 2 chunks +10 lines, -5 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/lib/js_helper.dart View 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/collection/collection.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M sdk/lib/collection_dev/collection_dev.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M sdk/lib/collection_dev/collection_dev_sources.gypi View 1 chunk +1 line, -2 lines 0 comments Download
D sdk/lib/collection_dev/empty.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
A sdk/lib/collection_dev/iterable.dart View 1 chunk +226 lines, -0 lines 3 comments Download
M sdk/lib/core/iterable.dart View 1 chunk +0 lines, -221 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
floitsch
Based on https://codereview.chromium.org/11959012/ @Ivan: please have a look at the VM changes.
7 years, 11 months ago (2013-01-17 17:21:34 UTC) #1
Ivan Posva
LGTM with comment. -Ivan https://codereview.chromium.org/11931042/diff/1/sdk/lib/collection_dev/iterable.dart File sdk/lib/collection_dev/iterable.dart (right): https://codereview.chromium.org/11931042/diff/1/sdk/lib/collection_dev/iterable.dart#newcode15 sdk/lib/collection_dev/iterable.dart:15: MappedIterable(this._iterable, T this._f(S element)); I ...
7 years, 11 months ago (2013-01-17 18:36:12 UTC) #2
Lasse Reichstein Nielsen
lgtm https://codereview.chromium.org/11931042/diff/1/sdk/lib/collection_dev/iterable.dart File sdk/lib/collection_dev/iterable.dart (right): https://codereview.chromium.org/11931042/diff/1/sdk/lib/collection_dev/iterable.dart#newcode15 sdk/lib/collection_dev/iterable.dart:15: MappedIterable(this._iterable, T this._f(S element)); I generally try to ...
7 years, 11 months ago (2013-01-18 11:38:25 UTC) #3
floitsch
7 years, 11 months ago (2013-01-18 12:29:15 UTC) #4
https://codereview.chromium.org/11931042/diff/1/sdk/lib/collection_dev/iterab...
File sdk/lib/collection_dev/iterable.dart (right):

https://codereview.chromium.org/11931042/diff/1/sdk/lib/collection_dev/iterab...
sdk/lib/collection_dev/iterable.dart:15: MappedIterable(this._iterable, T
this._f(S element));
On 2013/01/18 11:38:25, Lasse Reichstein Nielsen wrote:
> I generally try to avoid this.f for functions too, and never use types with a
> this.param unless it is different from the field's type (in the rare case
where
> your field is more general than some of your constructors).
> 
> 
> I also avoid using this._foo for private fields since it becomes the name of
the
> parameter in the documentation, and you want another name here.
> 
> So maybe make it "Iterable<S> source, T mapping(S element)) : _iterable =
> source, _f = mapping;".

I will do it in a separate CL.

Powered by Google App Engine
This is Rietveld 408576698