HaxeFoundation / HaxeFoundation/haxe

Add Context.storeType

Open
#6,770 1 comment 1 reaction 1 assignee Claimed by @Simn View on GitHub
enhancement platform-macro
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

I'd like something like `Context.storeTypedExpr` for types.

In tink_macro this behavior is emulated per `@:genericBuild class DirectType<@const Id> {}` where the type is stored with a numerical id and then looked up again by id in the generic build macro.

I would very much like for this to be part of the compiler though, especially since calls like `TypeTools.toComplexType` could use it to represent everything (ideally it'd still try to create a proper `ComplexType`, but it could fill the unrepresentable blanks with something better than `null`).

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.