JsArrayLike doesn't model arrays and the code in question doesn't return an
array, so this is not about filling the gap between native array and java
arrays. JavaScript arraylike objects also doesn't have foreach.
The point of JsArrayLike.asList in the API is to bring a reasonable bridge
for
The compatibility works well when you write all of the code in Java and
leave the JavaScript intricacies to GWT.
That completely breaks down when you are working at the JavaScript level
with JsInterop, because it allows you to do things you could not do in Java
without JSNI or jsinterop.
Take for
Why not make a polyfill on the native js array loaded with the gwt runtime
(dynamically adding needed functions on it) so that it conforms to the Java
array type?
Would be ok to do that 99%of the time I think.
It would simplify so much interoperability between them, IMHO...
Arnaud
Le jeu. 3 août
Thanks for the info. Did you write it in Java? I found it very natural to
write "TS 2 Java" in typescript, using the typescript compiler API and
generated ast directly.
I wonder how we could coordinate our efforts to get something usable
sooner...
Do you have plans to do the translation the other