5 ms·
Haxe 4.0.0 preview 2: final keyword, arrow functions
- neals 9y agoHaxe, 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.
- Lerc 9y agoI 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.
- mixmastamyk 9y agoLooked at their site the other day and saw they got string interpolation backwards from the shell (“” vs ‘’), how is that possible?
- johnhattan 9y agoIIRC, 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
- subwayclub 9y agoThat 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 9y ago[deleted]
- RussianCow 9y agoShell and basically every other language that makes that distinction (PHP, Ruby, Perl...).
- bendmorris 9y agoThis 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.
- to3m 9y agoThey 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.)
- mixmastamyk 9y agoYou’re probably correct, though I think string interpolation is one of the things posix got mostly right.
- pier25 9y agoAnyone used Haxe in a server?
- gnabgib 9y agoDo you mean Neko https://en.wikipedia.org/wiki/Neko_(programming_language) https://en.wikipedia.org/wiki/Neko_(programming_language)? Haxe itself compiles into another language(https://haxe.org/manual/compiler-usage.html https://haxe.org/manual/compiler-usage.html) that would run on the server.
- pier25 9y agoYes, for example. Last time I checked Neko needed mod_neko. Is there a better way these days?
- bendmorris 9y agoThere 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 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.
- pier25 9y agoI 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.
- markknol 9y agoHaxelib (the Haxe package manager) client and server are both written in Haxe. Also try.haxe.org and kodegarden.org clients+servers are also written in Haxe.
- pier25 9y agoWhat target is Haxelib using?
- jdonaldson 9y agoHaxe has a nice site for discussing upcoming features: https://github.com/HaxeFoundation/haxe-evolution https://github.com/HaxeFoundation/haxe-evolution The pr page has the list of ongoing discussions: https://github.com/HaxeFoundation/haxe-evolution/pulls 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.