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

Issue 10905255: Change Duration to take proper named optional parameters. (Closed)

Created:
8 years, 3 months ago by kasperl
Modified:
8 years, 3 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Change Duration to take proper named optional parameters. R=bak@google.com,lrn@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=12314

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -11 lines) Patch
M lib/compiler/implementation/lib/coreimpl_patch.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/core/duration.dart View 1 chunk +2 lines, -2 lines 1 comment Download
M lib/coreimpl/duration_implementation.dart View 1 chunk +5 lines, -5 lines 0 comments Download
M pkg/unittest/test_case.dart View 1 chunk +1 line, -1 line 3 comments Download
M runtime/lib/date_patch.dart View 1 chunk +1 line, -1 line 2 comments Download
M samples/ui_lib/util/DateUtils.dart View 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
kasperl
8 years, 3 months ago (2012-09-13 08:26:42 UTC) #1
bakster
LGTM, Lars https://chromiumcodereview.appspot.com/10905255/diff/1/lib/core/duration.dart File lib/core/duration.dart (right): https://chromiumcodereview.appspot.com/10905255/diff/1/lib/core/duration.dart#newcode20 lib/core/duration.dart:20: int milliseconds}); It would be great to ...
8 years, 3 months ago (2012-09-13 09:00:01 UTC) #2
kasperl
https://chromiumcodereview.appspot.com/10905255/diff/1/pkg/unittest/test_case.dart File pkg/unittest/test_case.dart (right): https://chromiumcodereview.appspot.com/10905255/diff/1/pkg/unittest/test_case.dart#newcode89 pkg/unittest/test_case.dart:89: runningTime = new Duration(milliseconds: 0); On 2012/09/13 09:00:01, bakster ...
8 years, 3 months ago (2012-09-13 09:04:46 UTC) #3
Lasse Reichstein Nielsen
lgtm https://chromiumcodereview.appspot.com/10905255/diff/1/pkg/unittest/test_case.dart File pkg/unittest/test_case.dart (right): https://chromiumcodereview.appspot.com/10905255/diff/1/pkg/unittest/test_case.dart#newcode89 pkg/unittest/test_case.dart:89: runningTime = new Duration(milliseconds: 0); Not prevent it, ...
8 years, 3 months ago (2012-09-13 09:30:46 UTC) #4
kasperl
8 years, 3 months ago (2012-09-13 09:45:49 UTC) #5
https://chromiumcodereview.appspot.com/10905255/diff/1/runtime/lib/date_patch...
File runtime/lib/date_patch.dart (right):

https://chromiumcodereview.appspot.com/10905255/diff/1/runtime/lib/date_patch...
runtime/lib/date_patch.dart:34: if (isUtc) return new Duration();
On 2012/09/13 09:30:46, Lasse Reichstein Nielsen wrote:
> If not introducing the zero-duration, be consistent and use milliseconds: 0
> here.

I'm reluctant to start refactoring these things while I'm still trying to get
through all the code and "upgrade" it to the new optional parameter syntax and
semantics.

This is just the first of a ton of changes to the core libraries that we need to
do to enable the new semantics of positional optional parameters.

Powered by Google App Engine
This is Rietveld 408576698