Can Haxe be compiled to Coffeescript?

2019-08-18 17:39发布

问题:

I'm wondering whether it's possible to compile Haxe to Coffeescript - are there any tools that are available for this? I find Coffeescript's syntax to be much more concise than that of Javascript, so I'd like to find a Coffeescript target for Haxe (if it exists.)

回答1:

Haxe already has a Javascript target, and there is already a Javascript-to-Coffeescript that is available ( http://js2coffee.org/ ), so it should be possible, as long as js2coffee does not make any errors in compiling Javascript to Coffeescript.