Joey

Results 197 comments of Joey

That's a very good point, also it would be a nightmare if the standard library worked perfectly but only because this package was compiled on version 0.4 and this other...

Wouldn't that make it impossible then to have a smaller number overflow in a bigger number because the compiler would look through all of the chains of assignment and make...

The brains for this projects are all @elliott5, Not everything working yet is on me though 😅 @Chloe-cdq Here are the exact commands I used to build your example with...

Of course happy to help @Chloe-cdq ! As for the complication I agree it's quite a lot, especially if you are not familar with Haxe's build tools. Currently go2hx is...

@elliott5 Yes to the first part with [Int.SetInt](https://pkg.go.dev/math/big#Int.SetString), the second part I don't understand the 3 forms system, is it in order to become any type on the Haxe side...

Ah I didn't know that was possible thanks for the info. I'll use the 3 form approach then, not quite sure how it will work in practice now, but I'm...

Last approach needed is a way to construct big number equivalents on the Haxe side, which is blocked until std math/big passes tests.

@ShaharMS Thank you as well! I'm working on a AnyOf/OneOf system since you mentioned it to me, modeled around your very helpful example post and @haxiomic 's dts2hx [AnyOf](https://github.com/haxiomic/dts2hx/blob/8e9e8db122b9c906ad815d6c8f196be87be7cff7/test/_generated-libs/jquery/ts/AnyOf13.hx) system....

Also I just noticed I'm pretty sure the T generic with the OneOfThree constraint type is redundant. ```haxe class SomeClass {} ``` since whatever T is can always be replaced...

```haxe import stdgo.StdGoTypes; function main():Void { stdgo.fmt.Fmt.println(_m(((10 : GoInt)))); stdgo.fmt.Fmt.println(_m(((10.2 : GoFloat64)))); } function _m(_x:T):T { return _x + _x; } @:transitive @:anyof extern abstract AnyOf2(Dynamic) from T0 from T1...