Skip to content

Remove ExtDTypeInner#6874

Open
gatesn wants to merge 1 commit intodevelopfrom
ngates/ext-dtype-inner
Open

Remove ExtDTypeInner#6874
gatesn wants to merge 1 commit intodevelopfrom
ngates/ext-dtype-inner

Conversation

@gatesn
Copy link
Contributor

@gatesn gatesn commented Mar 10, 2026

No description provided.

Signed-off-by: Nicholas Gates <nick@nickgates.com>
@gatesn gatesn added the changelog/chore A trivial change label Mar 10, 2026
@robert3005
Copy link
Contributor

What's the justification?

@gatesn
Copy link
Contributor Author

gatesn commented Mar 11, 2026

The vtable docs says so 😀

Real reason, is that this allows both the type erased and typed versions to defef to the same &Foo, which make a lot of APIs a lot simpler.

The cost is that &Foo is more expensive to clone since there is no arc. However any function that could require returning "self" should be implemented over the type erased version FooRef and the typed vtable should return Option. Therefore the clone is always performed over the erased version which contains an Arc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/chore A trivial change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants