Simon Krajewski
Simon Krajewski
For what it's worth I have added positions to a _lot_ of constructs in Haxe itself. The problem is that this isn't exposed to the macro API because doing that...
Is there anything we can do to help with this? It has been an open issue for months and I don't understand what's causing problems here. Getting basic completion done...
See https://github.com/HaxeFoundation/haxe/pull/6119 We also spent quite a bit of time designing this for the JVM target to make it efficient. Here's the decompiled code for the base class haxe.jvm.Enum: ```java...
Note that Haxe enums are actually algebraic data types, so you need to be able to store the associated values somehow. Also, I think this is the first time I'm...
I'm not sure what we're actually discussing here because it is my understanding that C# enums are a different kind of data. Unless I'm missing something, we cannot represent a...
That's close, except that I don't think `public static readonly Option Some` makes much sense because there's not a singular value for `Some`. It should instead be a function that...
I once had a similar idea when we were working on a C target. I still have the test case for that: https://gist.github.com/Simn/f2718bc8037af3c146bc Basically, when you can be sure about...
I just remembered another reason I wanted to do it like that: ```haxe function test(a = 0, ?b = 0) { $type(a); // Int $type(b); // Null } function main()...
Yes I meant to imply that because it works well with my approach. That way you have one wrapper function which deals with all the default value stuff (which is...
I usually use classes for "heavy" data which might even be built and refined over time, and which is supposed to have an identity. So this seems like a good...