Y
Hacker News
new
|
ask
|
show
|
jobs
by
Gama11
1954 days ago
Haxe macros are very powerful, but not needed for that particular issue - the compiler supports inlining of methods and even constructors (which is useful for iterators in particular):
https://haxe.org/manual/lf-inline-constructor.html