go2hx icon indicating copy to clipboard operation
go2hx copied to clipboard

Transpile Fmt stdlib into Haxe sucessfully and passing the tests

Open PXshadow opened this issue 5 years ago • 2 comments

The fmt formatter for Go is pretty sophiscated, currently go2hx was using a modified Haxe library that simulated the formatter for c, however Go has alot of extra features and requirements on top of C's fmt, I think it would be a good idea to eventually get Fmt to transpile properly into Haxe code for use in stdgo

PXshadow avatar Mar 30 '21 22:03 PXshadow

This will be a lot of work @PXshadow, but will be a real breakthrough, because so much native Go uses fmt (often just to format strings) and so much of fmt is built on reflect.

elliott5 avatar Mar 31 '21 05:03 elliott5

I concur @elliott5 , hopefully the tinygo tests I've pulled in will help make the compiler much more rigorous with transpilation. There is defiently much more to refine, and also build such as the reflect system (that really needs a solid amount of time invested to get most of the features working for it).

PXshadow avatar Mar 31 '21 09:03 PXshadow

duplicate #153

PXshadow avatar Jan 18 '23 14:01 PXshadow