Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tweak NamedTuple operations to be more type-stable #195

Merged
merged 2 commits into from
Feb 4, 2025

Conversation

aplavin
Copy link
Member

@aplavin aplavin commented Feb 4, 2025

Don't know how to make a self-contained test for it, but found that this change improves stability in some cases.
I guess Julia prefers if types stay in the type domain the whole time (as in NamedTuple{(field,)}), instead of going through the value domain and constprop (as in (; field => val)).

Copy link
Member

@jw3126 jw3126 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, maybe add a comment so that nobody cleans up this "ugly" syntax accidentally.

@aplavin aplavin merged commit 6d0d965 into JuliaObjects:master Feb 4, 2025
11 checks passed
@aplavin aplavin deleted the nt branch February 4, 2025 16:42
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