Discussion:
[dart-misc] Future of JS Interop
Cristian Garcia
2015-07-09 16:23:11 UTC
Permalink
Now that the DartVM in Chrome is gone, better JS interop should be the next
big thing. Even if it doesn't make than language nicer, it would make it
more useful. I don't know exactly how JS interop is done, but it would be
nice if in the future you could just call existing or create new js
variables like this

js.x = 1;

js(r'$').someJQueryCommand (js.x);


This might mean a couple of things

1. Your code might not run on Dartium (but there is not much point to it
anymore).
2. It would have to be a thinner JS layer (maybe).
3. Production of human readable JS code would be a necessity for better
debugging (the no Dartium problem).

All in all, it would be nice if you could use the standard Dart libraries
but interact with JS as natural as possible.
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new

To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
'Dan Grove' via Dart Misc
2015-07-10 17:32:45 UTC
Permalink
Post by Cristian Garcia
Now that the DartVM in Chrome is gone, better JS interop should be the
next big thing. Even if it doesn't make than language nicer, it would make
it more useful. I don't know exactly how JS interop is done, but it would
be nice if in the future you could just call existing or create new js
variables like this
js.x = 1;
js(r'$').someJQueryCommand (js.x);
This might mean a couple of things
1. Your code might not run on Dartium (but there is not much point to
it anymore).
2. It would have to be a thinner JS layer (maybe).
3. Production of human readable JS code would be a necessity for
better debugging (the no Dartium problem).
All in all, it would be nice if you could use the standard Dart libraries
but interact with JS as natural as possible.
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new

To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Loading...