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

Issue 1836163002: Fix algorithm generics. (Closed)

Created:
4 years, 8 months ago by nweiz
Modified:
4 years, 8 months ago
Reviewers:
Bob Nystrom
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/collection@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix algorithm generics. Using "T extends Comparable" in these generics doesn't work, because we want users to be able to pass in non-Comparable arguments with custom comparator functions. Now if no explicit comparator is used, we rely on runtime checks to ensure that the objects implement Comparable. R=rnystrom@google.com Committed: https://github.com/dart-lang/collection/commit/f2c3ed7822ff17fa65dcc288b4de71ca185fbc4a

Patch Set 1 #

Total comments: 9

Patch Set 2 : Code review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -83 lines) Patch
M CHANGELOG.md View 1 chunk +7 lines, -0 lines 0 comments Download
M lib/src/algorithms.dart View 1 10 chunks +42 lines, -80 lines 0 comments Download
M lib/src/priority_queue.dart View 2 chunks +3 lines, -2 lines 0 comments Download
M lib/src/utils.dart View 1 chunk +4 lines, -0 lines 0 comments Download
M pubspec.yaml View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (1 generated)
nweiz
4 years, 8 months ago (2016-03-29 00:41:50 UTC) #1
Bob Nystrom
A few style nits but LGTM. https://codereview.chromium.org/1836163002/diff/1/lib/src/algorithms.dart File lib/src/algorithms.dart (right): https://codereview.chromium.org/1836163002/diff/1/lib/src/algorithms.dart#newcode48 lib/src/algorithms.dart:48: int lowerBound/*<T extends ...
4 years, 8 months ago (2016-03-29 02:01:55 UTC) #2
nweiz
Code review changes
4 years, 8 months ago (2016-03-29 18:44:14 UTC) #3
nweiz
https://codereview.chromium.org/1836163002/diff/1/lib/src/algorithms.dart File lib/src/algorithms.dart (right): https://codereview.chromium.org/1836163002/diff/1/lib/src/algorithms.dart#newcode48 lib/src/algorithms.dart:48: int lowerBound/*<T extends Comparable<T>>*/(List/*<T>*/ sortedList, /*=T*/ value, On 2016/03/29 ...
4 years, 8 months ago (2016-03-29 18:47:23 UTC) #4
nweiz
4 years, 8 months ago (2016-03-29 18:47:48 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
f2c3ed7822ff17fa65dcc288b4de71ca185fbc4a (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698