dart:html should be split up

15 views
Skip to first unread message

Sean Eagan

unread,
May 17, 2012, 2:46:30 PM5/17/12
to General Dart Discussion
The dart:html library is huge. This leads to some issues:

* makes the documentation extremely difficult to navigate
* importing dart:html really clutters your namespace
* prefixes must be used on top-level names in dart:html to avoid
conflicts with other parts of the library
* if it is not split up now, it will only get bigger over time

It should be split up into smaller libraries. The challenge of course
is where to draw the boundaries for the smaller libraries. Here are
some approximate subsets which should probably be their own library:

SVG* (154 names!)

Audio* (21 names)

CSS* (18 names)

IDB* (18 names)

WebGL* (17 names)

*Worker* (13 names)

Speech* (12 names)

typed arrays (11 names)
see https://developer.mozilla.org/en/JavaScript_typed_arrays

Canvas* (5 names)

geometry
Point (http://dartbug.com/3053)
Rectangle (http://dartbug.com/issue 3035)
Matrix (http://dartbug.com/issue 3054)
others ?

If there is general agreement on this, I'll file a bug.

Cheers,
Sean Eagan

Anton Muhin

unread,
May 17, 2012, 3:03:14 PM5/17/12
to Sean Eagan, General Dart Discussion
Yes, we discussed it several times over here too, so, please, file a bug.

yours,
anton.

Sean Eagan

unread,
May 17, 2012, 3:15:50 PM5/17/12
to Anton Muhin, General Dart Discussion
On Thu, May 17, 2012 at 2:03 PM, Anton Muhin <ant...@google.com> wrote:
> Yes, we discussed it several times over here too, so, please, file a bug.

http://dartbug.com/3108

Cheers,
Sean Eagan

Anton Muhin

unread,
May 17, 2012, 3:16:16 PM5/17/12
to Sean Eagan, General Dart Discussion
Thank you, Sean.

yours,
anton.
Reply all
Reply to author
Forward
0 new messages