Skip to content

Consider anyref type #5

@egranata

Description

@egranata

anyref would be the type of an arbitrary reference type object. The advantage is that all such types have identical size (one pointer) and metadata can be used to decide questions like "are you an instance of X vs. Y concrete types?" and "how do I free this memory?"

Having such a type would make it possible to build some basic (if unsafe) data structures without needing generics in the core language

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions