Haxe 4.0.0 preview 2: final keyword, arrow functions(haxe.org)
haxe.org
Haxe 4.0.0 preview 2: final keyword, arrow functions
https://haxe.org/download/version/4.0.0-preview.2/
18 comments
Haxe, hashlink, heaps... This stuff is just amazing and if it would have been backed by a large corporation, it would be a top 3 ecosystem.
I tend to feel that not being backed by a large corporation is a point in Haxe's favour.
It's making the argument that it should be used because it is good. Improvements to the language have to stand on their own merit rather than what would drive the parent coproration's agenda.
It's making the argument that it should be used because it is good. Improvements to the language have to stand on their own merit rather than what would drive the parent coproration's agenda.
Haxe has a nice site for discussing upcoming features:
https://github.com/HaxeFoundation/haxe-evolution
The pr page has the list of ongoing discussions: https://github.com/HaxeFoundation/haxe-evolution/pulls
The issues page is a sort of staging ground for complex gripes that don't have straightforward solutions yet.
It's a great community, I've been part of it for years and recently joined the compiler team.
The pr page has the list of ongoing discussions: https://github.com/HaxeFoundation/haxe-evolution/pulls
The issues page is a sort of staging ground for complex gripes that don't have straightforward solutions yet.
It's a great community, I've been part of it for years and recently joined the compiler team.
Looked at their site the other day and saw they got string interpolation backwards from the shell (“” vs ‘’), how is that possible?
They probably started with quoted string literals (same syntax as ActionScript, I think, plus many other languages of course), then added string interpolation later and realised they needed a different syntax for it.
(Another option: they looked at what the POSIX-style shell does, and did exactly the opposite. And as language design strategies go, that is far from the worst possible.)
(Another option: they looked at what the POSIX-style shell does, and did exactly the opposite. And as language design strategies go, that is far from the worst possible.)
You’re probably correct, though I think string interpolation is one of the things posix got mostly right.
Shell and basically every other language that makes that distinction (PHP, Ruby, Perl...).
This is pretty annoying, but you get used to it. After so long it would be a major pain to break everyone's strings by flipping the syntax.
IIRC, you can use either. Whatever quote you used to start the string is the one that will end the string.
var foo:String = "foo"; // foo
var bar:String = 'bar'; // bar
var fooquotebar:String = "foo'bar"; // foo'bar
var foo:String = "foo"; // foo
var bar:String = 'bar'; // bar
var fooquotebar:String = "foo'bar"; // foo'bar
That doesn't cover the interpolation part of it, though.
var z = "This is just a literal value";
var q = 'This automatically runs Std.format, letting me include "$z"';[deleted]
Anyone used Haxe in a server?
There are several ways to do it: compile to C++, compile to the Neko VM, or use Node (there are official bindings: https://github.com/HaxeFoundation/hxnodejs) In development it's Haxe (which is a lovely language to work with) but in production it can be something you're familiar with.
I like Haxe. I coded in AS3 for years.
What I wanted to know was if anyone could share their experience when running a Haxe target on a server.
What I wanted to know was if anyone could share their experience when running a Haxe target on a server.
Do you mean Neko https://en.wikipedia.org/wiki/Neko_(programming_language)? Haxe itself compiles into another language(https://haxe.org/manual/compiler-usage.html) that would run on the server.
Yes, for example.
Last time I checked Neko needed mod_neko.
Is there a better way these days?
Last time I checked Neko needed mod_neko.
Is there a better way these days?