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

function/stdlib: Setproduct mark handling #99

Merged
merged 1 commit into from Apr 20, 2021

Conversation

mildwonkey
Copy link
Contributor

Setproduct will now preserve marks on both the arguments and their elements. Marks that apply to any entire argument will propegate to all return values, while marks applied to a single element will remain attached to individual values.

@mildwonkey
Copy link
Contributor Author

rebased + confirmed tests ✅

Setproduct will now preserve marks on both the arguments and their
elements. Marks that apply to any entire argument will propagate to all
return values, while marks applied to a single element will remain
attached to individual values.

In the cases where this function returns a set result the marks still end
up aggregated at the root set value anyway due to cty's treatment of marks
in sets, but we can retain the precision in the cases where we'll return
a list.
@apparentlymart
Copy link
Collaborator

Thanks!

@apparentlymart apparentlymart merged commit af7c1a1 into zclconf:main Apr 20, 2021
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.

None yet

2 participants