News for hackers. Stuff that matters.
Re:Try Haxe by reubensutton on Sunday June 10, 2012 @11:06AM (#4091227)
In the example in that landing page, there appears to be if statements depending on platform, is this something that's often necessary when using Haxe, or only when you want to perform a specific action for that target language?
Re:Try Haxe by clemos on Sunday June 10, 2012 @11:31AM (#4091304)
http://haxe.org/ref/conditionals

Most standard classes and methods (String, Array, Hash, etc), and a lot of third party libraries are completely cross-platform, so you don't need conditional compilation.

Usually you use conditional compilation either for very low-level per-platform operations / optimizations, or to switch, say, between client code and server code, like here for instance:

https://github.com/clemos/try-haxe/blob/master/src/App.hx

Re:Try Haxe by deltaluca on Sunday June 10, 2012 @11:10AM (#4091241)
Only when you want to perform specific actions (Or are writing a cross-platform lib which may need itself to perform platform specific actions)

In the usual case of using already written cross-platform libs you'd rarely need to do this.