Hacker News new | ask | show | jobs
by clemos 5114 days ago
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