Released: 2020-05-13
Thank you for choosing Haxe!
Download for your platform and start developing today.
A newer version is available!
The latest stable version is Haxe 4.3.7.
Dear Community,
On behalf of the Haxe Foundation, we are proud to announce the official release of Haxe 4.1.0!
This time, we've focused on a smaller set of features to keep the release cycle short.
The most notable changes:
We've gone into more detail about that in this blog post.
Haxe 4.1.0 also includes over one hundred other additions, optimizations, improvements, and bugfixes.
Check out the changelog below for more information.
If you have any suggestions or run into any problems, absolutely open an issue on GitHub.
Thanks to everyone involved!
New features:
try {} catch(e) {} as a shortcut for try {} catch(e:haxe.Exception) {} (#9269)General improvements:
@:overload and inline (#3846)return in Void functions (#6420)continue in loops (#8952)(get,default) property access combination (#6195, #8825)let instead of var when compiler with -D js-es=6 (#9280).bind on constructors (#9227)@:jvm.synthetic and use it to hide some generated fields (#9213)@:private and @:protectedhaxe.iterators.StringIteratorStd.isOfType for String, Bool and Float@:assemblyMeta and @:assemblyStrict (#8347)__contains__ and __getitem__ implementations to generated python code for _hx_AnonObject, so it is subscribable and behaves like a python dict (#9109)Standard Library:
startIndex argument of String.indexOf and String.lastIndexOf is unspecified (#8365)haxe.crypto modules (#9298)Deprecations:
Std.is; use Std.isOfType instead (#2976)untyped __js__(code, args); use js.Syntax.code(code, args) insteadBugfixes:
return; in abstract constructors (#7809)@:optional handling in the inheritance of @:structInit classes (#7559)@:generic types (#9149)Void return type for arrow functions (#9181)if..else if without final else (#9040)TAnonymous in haxe.macro.TypeTools.map (#9147)null yielding null (#8452)hx package in a project (#8543)null to 0 conversion in parametrized functions for Null<Int> params (#7428)null value (#9316)