HaxeFoundation / HaxeFoundation/haxe

Key type for NativeAssocArray

Open
#11,902 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

Can we parametrize the key type of NativeAssocArray?

I'm trying to create an extern for a "Collection" interface:
```
extern interface CollectionInterface {.
function toArray():NativeArray;
}
```
NativeArray isn't super useful since I lose the value type.
NativeIndexedArray isn't right since the key type may be String.
I can't use NativeAssocArray right now since the key type may be Int.

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.