webdev icon indicating copy to clipboard operation
webdev copied to clipboard

Organize dwds APIs better around IDs/remoteObjects/Instances

Open alan-knight opened this issue 6 years ago • 1 comments

We have different APIs that take a Dart String ID, a Chrome String ID, a Chrome RemoteObject, or an InstanceRef. Sometimes we want to be able to accept less information (e.g. Dart API calls normally just give us a Dart objectId.) But sometimes we have more information internally and we end up throwing it away or duplicating functionality with different arguments. It would be nice if we could rationalize these to be able to use the information if available. Maybe it makes sense to have something like DartUri for object references. But that might also just be over-complicated. Or maybe we could do something interesting with extension methods.

alan-knight avatar Nov 05 '19 23:11 alan-knight

Create a unified object reference type, such as a "DartUri," that can be used across all APIs. This would allow to use the available information consistently, without duplicating functionality or losing information.

anujcontractor avatar Jan 28 '23 15:01 anujcontractor