Skip to content

Support similar with nonconcrete types#237

Merged
piever merged 6 commits intomasterfrom
pv/similarfix
Jun 25, 2022
Merged

Support similar with nonconcrete types#237
piever merged 6 commits intomasterfrom
pv/similarfix

Conversation

@piever
Copy link
Collaborator

@piever piever commented Jun 24, 2022

@aplavin, thanks for #236. I'm keeping the tests from there (and adding some more unit tests here), but I've changed to a unified implementation, otherwise it seemed like one risked missing some weird types between NamedTuple{names} and NamedTuple{names, types} (things like T = NamedTuple{(:a, :b), Tuple{Int, S}} where S).

I'm not sure whether those are a problem in practice, but I thought it was safer to keep a unified implementation to avoid weird corner cases.

If this makes sense to you, I'll merge and tag this soon.

Supersedes #236

@aplavin
Copy link
Member

aplavin commented Jun 25, 2022

I also like the unified implementation more, thanks for cleaning up my fix PR!

Co-authored-by: Alexander <alexander@plav.in>
@piever piever merged commit 3fe67c7 into master Jun 25, 2022
@piever piever deleted the pv/similarfix branch June 25, 2022 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants