Erik Ernst

Results 1003 comments of Erik Ernst

If we don't have overriding (or shadowing, or whatever we want to call it) then the situation may actually be OK, because it is consistent with OO dispatch. So we...

@rileyporter, I think we can have the kind of features you want, with a twist. Here is a variant of your examples using views: ```dart // Library 'dart.html'. class Node...

> Could the "connection" then be to cast the `Node` to a `NodeView` and call > the methods on there, similar to today's extensions, or am I misunderstanding views? I'd...

> I think we'd want the `NodeView` to just be named `Node on JSObject`, so users > could keep using the 'dart:html' `Node` type as the abstraction. Yes, the views...

> Also, I could see `extends html.Node hide childNodes` getting verbose if there > are many members to hide. Do we want users to explicitly have to hide "overridden" >...

I think I'll dive one step deeper on this one! :smile: @rileyporter wrote: > For example, returning a `List` instead of the DOM type `NodeList` (something we thought we might...

First draft of feature specification at PR dart-lang/sdk#557.

> The "exact" type already exists Right. The notion of an _exact type_ is not specified, but it is used in some cases by our tools (even to raise an...

That is true, but parts of the implementation need to be updated (many other things happened in Dart since then), so there's some work to do before it is ready...

No ongoing work on this right now, but the feature is certainly on the radar, and I'm not the only one who keeps wanting it. ;-)