HaxeFoundation / HaxeFoundation/haxe
missing a way to provide access to private types through a macro
Open
enhancement
platform-macro
priority-low
- Dominant language
- Haxe
- Stars
- 6.9k
- Forks
- 715
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 11
Description
Subj. It could be useful with `@:genericBuild` for example:
``` haxe
@:genericBuild(MyMacro.build()) // macro returns `SugarTypeImpl` with proper type params
class SugarType {}
private class SugarTypeImpl {
// ...
}
```
We don't want to provide direct access to `SugarTypeImpl`, only through `SugarType` by returning it from its `@:genericBuild` macro.
Contributor guide
Assessment
This issue has not been assessed yet.