(Replying to PARENT post)

I'm confused, what's the purpose of targeting language (http://haxe.org/documentation/introduction/compiler-targets....)?

I can understand e.g. people use CoffeeScript because JavaScript is more verbose. But why target Python from Haxe? Shouldn't it be the other way around?

๐Ÿ‘คwiradikusuma๐Ÿ•‘11y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

I think the honest reason was along the lines of "because I/we can". Many people (myself included) use the Sublime Text Haxe bundle[1], and the plugin is written in Python. Someone started a weekend project to create the Python target so they could rewrite it in Haxe, targeting Python. It got a few contributors on board and suddenly all unit tests were passing.

It does seem slightly odd (many would prefer Python for the language, not the platform), but for those of us more familiar with Haxe, or with existing code/projects in Haxe, being able to target Python means having access to a wider array of libraries, which I guess is kind of cool.

1: https://github.com/clemos/haxe-sublime-bundle

๐Ÿ‘คjoneil๐Ÿ•‘11y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

So you can write in Haxe, and then use it in your python projects.
๐Ÿ‘คillumen๐Ÿ•‘11y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

The idea is to be able to write code in one language and use this code in many different languages.
๐Ÿ‘คlignuist๐Ÿ•‘11y๐Ÿ”ผ0๐Ÿ—จ๏ธ0