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

Use static dictionary types for record.fields and record.values #1024

Merged
merged 1 commit into from
Jan 2, 2023

Conversation

matthew-healy
Copy link
Contributor

This closes #936.

@github-actions github-actions bot temporarily deployed to pull request December 30, 2022 13:05 Inactive
@matthew-healy matthew-healy marked this pull request as ready for review December 30, 2022 13:50
@matthew-healy matthew-healy merged commit bdda1c2 into master Jan 2, 2023
@matthew-healy matthew-healy deleted the stdlib/record-fields-values branch January 2, 2023 09:55
UnaryOp::ValuesOf() => (mk_uniftype::dynamic(), mk_uniftype::array(TypeF::Dyn)),
// forall a. { _: a } -> Array Str
UnaryOp::FieldsOf() => {
let ty_a = UnifType::UnifVar(state.table.fresh_type_var_id());
Copy link
Member

Choose a reason for hiding this comment

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

You can use directly state.table.fresh_type_uvar() instead here

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.

Improve typing of record.fields and record.values to take a dictionary type
3 participants