Python-to-Haxe Compiler

Back a few years ago, I experimented converting Typescript code to Haxe (repo of the converter is there: https://github.com/jeremyfa/node-ts2hx but don’t try to use it on a real project heh).

My main motivation was not that I didn’t like Haxe. I really think Haxe is a great language. But at that time the language got pretty poor IDE integration (especially on Mac where there wasn’t anything like FlashDevelop/HaxeDevelop) and made it difficult to commit to it compared to other languages (like typescript) that already got pretty good editors.

But nowadays, these issues are mostly solved: There is Visual Studio Code (that didn’t exist a few years back) and an excellent plugin for Haxe maintained by the Haxe Foundation. Haxe language + VSCode are one of the most comfortable tools I use.

I switched to Haxe to make games and a load of other things and I am not looking back.

It’s super interesting to transpile python to Haxe, I had fun doing similar things to convert code from Typescript to Haxe and can imagin how rewarding it was to see your python code just compile and run a flixel project! But here are my thoughts: I think you could give Haxe a second chance. It really is a great and powerful language which is easy to get started with nowadays. Plus Visual Studio Code integration is top notch and works on all desktop platforms :+1:

And, if you do like python, there are probably plenty of use cases where python and Haxe+python target could play very well together!

I know all I say here is not encouraging you to work on your python-to-haxe converter, but you asked for feedback and thoughts, so here they are :nerd_face: