HaxeFoundation / HaxeFoundation/haxe

missing a way to provide access to private types through a macro

Open
#3,589 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.