Re:JSweet: A transpiler from Java to TypeScript/JavaScript
by ggonweb on Tuesday December 15, 2015 @06:25PM
(#10741240)
What are the good options to convert from Javascript to Java or to other high level languages?
[ Parent
| on HN ]
Re:JSweet: A transpiler from Java to TypeScript/JavaScript
by renaudpawlak on Wednesday December 16, 2015 @07:06AM
(#10743724)
Transpiling from an untyped language to a typed one would give you horrid results in most cases. The practical way would be to use TypeScript to compile your program (JavaScript programs compile fine with TypeScript) and start to manually transform your JavaScript code to add objects and types.
That said, that would be a really cool tool to have...
Re:JSweet: A transpiler from Java to TypeScript/JavaScript
by ggonweb on Wednesday December 16, 2015 @09:02AM
(#10744264)
Has anybody tried Mozilla Rhino
https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Rh...