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

Issue 10832401: Gentle start with removing explicit interfaces (Closed)

Created:
8 years, 4 months ago by hausner
Modified:
8 years, 4 months ago
CC:
reviews_dartlang.org, Mads Ager (google), kasperl
Visibility:
Public.

Description

Gentle start with removing explicit interfaces Committed: https://code.google.com/p/dart/source/detail?r=11248

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 13

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 24

Patch Set 8 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -89 lines) Patch
M corelib/src/comparable.dart View 1 2 3 4 5 6 7 1 chunk +6 lines, -2 lines 2 comments Download
M corelib/src/function.dart View 1 2 3 4 5 6 7 1 chunk +5 lines, -1 line 0 comments Download
M corelib/src/hashable.dart View 1 2 3 4 5 6 7 1 chunk +6 lines, -2 lines 0 comments Download
M corelib/src/num.dart View 1 2 3 4 5 6 7 1 chunk +31 lines, -27 lines 0 comments Download
M runtime/vm/class_finalizer.cc View 1 2 3 4 5 6 7 3 chunks +4 lines, -2 lines 0 comments Download
M runtime/vm/compiler.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/flow_graph_compiler.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/flow_graph_compiler_ia32.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
runtime/vm/flow_graph_compiler_x64.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/intrinsifier_ia32.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/object.h View 1 2 3 4 5 6 7 4 chunks +16 lines, -6 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 5 6 7 8 chunks +31 lines, -15 lines 0 comments Download
M runtime/vm/object_store.h View 1 2 3 4 5 6 7 2 chunks +8 lines, -10 lines 0 comments Download
M runtime/vm/object_store.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/parser.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/raw_object.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
M runtime/vm/raw_object.cc View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download
M runtime/vm/raw_object_snapshot.cc View 1 2 3 4 5 6 7 2 chunks +17 lines, -1 line 0 comments Download
runtime/vm/snapshot.cc View 1 2 3 4 5 6 7 3 chunks +7 lines, -7 lines 0 comments Download
M runtime/vm/snapshot_ids.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/symbols.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
hausner
8 years, 4 months ago (2012-08-21 00:24:52 UTC) #1
hausner
Added renaming of internal functions in object_store and class Type as discussed offline with Ivan. ...
8 years, 4 months ago (2012-08-21 18:08:58 UTC) #2
hausner
Adding Mads and Kasper as FYI.
8 years, 4 months ago (2012-08-21 18:27:14 UTC) #3
sra1
http://codereview.chromium.org/10832401/diff/5/corelib/src/function.dart File corelib/src/function.dart (right): http://codereview.chromium.org/10832401/diff/5/corelib/src/function.dart#newcode7 corelib/src/function.dart:7: class Function { This should be abstract, otherwise it ...
8 years, 4 months ago (2012-08-21 18:31:39 UTC) #4
regis
LGTM with some concerns about readability. http://codereview.chromium.org/10832401/diff/5/corelib/src/function.dart File corelib/src/function.dart (right): http://codereview.chromium.org/10832401/diff/5/corelib/src/function.dart#newcode7 corelib/src/function.dart:7: class Function { ...
8 years, 4 months ago (2012-08-21 19:13:22 UTC) #5
regis
On 2012/08/21 19:13:22, regis wrote: > LGTM with some concerns about readability. > > http://codereview.chromium.org/10832401/diff/5/corelib/src/function.dart ...
8 years, 4 months ago (2012-08-21 19:36:19 UTC) #6
siva
http://codereview.chromium.org/10832401/diff/5/runtime/vm/class_finalizer.cc File runtime/vm/class_finalizer.cc (right): http://codereview.chromium.org/10832401/diff/5/runtime/vm/class_finalizer.cc#newcode1131 runtime/vm/class_finalizer.cc:1131: if (cls.is_interface()) { Are we going to remove the ...
8 years, 4 months ago (2012-08-21 21:22:06 UTC) #7
hausner
PTAL - Renamed Type::IsXxxx to Type::IsXxxxType as Regis suggested. - Made interface classes uninstantiable - ...
8 years, 4 months ago (2012-08-23 00:25:06 UTC) #8
regis
LGTM! http://codereview.chromium.org/10832401/diff/14022/corelib/src/comparable.dart File corelib/src/comparable.dart (right): http://codereview.chromium.org/10832401/diff/14022/corelib/src/comparable.dart#newcode8 corelib/src/comparable.dart:8: factory Comparable._unistantiable() => null; s/_unistantiable/_uninstantiable/ http://codereview.chromium.org/10832401/diff/14022/runtime/vm/object.cc File runtime/vm/object.cc ...
8 years, 4 months ago (2012-08-23 03:53:10 UTC) #9
Ivan Posva
LGTM with comments. -Ivan http://codereview.chromium.org/10832401/diff/14022/corelib/src/comparable.dart File corelib/src/comparable.dart (right): http://codereview.chromium.org/10832401/diff/14022/corelib/src/comparable.dart#newcode8 corelib/src/comparable.dart:8: factory Comparable._unistantiable() => null; Can ...
8 years, 4 months ago (2012-08-23 06:13:44 UTC) #10
sra1
http://codereview.chromium.org/10832401/diff/5/corelib/src/function.dart File corelib/src/function.dart (right): http://codereview.chromium.org/10832401/diff/5/corelib/src/function.dart#newcode7 corelib/src/function.dart:7: class Function { On 2012/08/23 00:25:06, hausner wrote: > ...
8 years, 4 months ago (2012-08-23 18:18:18 UTC) #11
Ivan Posva
http://codereview.chromium.org/10832401/diff/5/corelib/src/function.dart File corelib/src/function.dart (right): http://codereview.chromium.org/10832401/diff/5/corelib/src/function.dart#newcode7 corelib/src/function.dart:7: class Function { It seems like this is mostly ...
8 years, 4 months ago (2012-08-23 18:29:13 UTC) #12
hausner
I agree with Ivan that we should have the language discussion outside of this change ...
8 years, 4 months ago (2012-08-23 18:34:10 UTC) #13
bakster
http://codereview.chromium.org/10832401/diff/21005/corelib/src/comparable.dart File corelib/src/comparable.dart (right): http://codereview.chromium.org/10832401/diff/21005/corelib/src/comparable.dart#newcode11 corelib/src/comparable.dart:11: } I don't understand why this is needed. If ...
8 years, 4 months ago (2012-08-24 06:32:50 UTC) #14
hausner
8 years, 4 months ago (2012-08-24 15:25:45 UTC) #15
http://codereview.chromium.org/10832401/diff/21005/corelib/src/comparable.dart
File corelib/src/comparable.dart (right):

http://codereview.chromium.org/10832401/diff/21005/corelib/src/comparable.dar...
corelib/src/comparable.dart:11: }
I checked this with Gilad of course. He says that an abstract class can be
instantiated.

It seems there is some confusion about the semantics of abstract classes. It
might be worthwhile for you, Kasper and Gilad to confirm that you all have the
same idea.




On 2012/08/24 06:32:50, bak1 wrote:
> I don't understand why this is needed. If the class is abstract a new
operation
> will throw an error.
> That should be sufficient.

Powered by Google App Engine
This is Rietveld 408576698