Re:The not so hidden cost of sharing code between iOS and An...
by tkp on Saturday August 24, 2019 @12:20PM
(#20788009)
> a bit like Haxe, except that it let you 'inject' snippets of your target language wherever you wanted.
If I understand you correctly, this feature is available in Haxe : https://haxe.org/manual/target-syntax.html
It targets js, php, C++, has a proper team and good tooling.. so you might be interested in giving it a try.
I implemented targets for JS, php and C++. It worked okayish but in the end it was more work to maintain the separate language than just write everything 3 times with some help of a simple macro/template language. I still sometimes wonder if the concept would be developed further, with a proper team and good tooling etc, if it would be a practical way of doing large scale cross platform software development.