Skip to content

Make a function that assigns types to unknowns from an overall type/Form description #2338

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

Closed
jpivarski opened this issue Mar 23, 2023 · 2 comments · Fixed by #2365
Closed
Labels
duplicate This issue or pull request already exists

Comments

@jpivarski
Copy link
Member

jpivarski commented Mar 23, 2023

Note to self: the "prototype method" of assigning a type is a good hint of how to write that type-setting function. We have a way of turning a Form into a length-0 array (it's an L2 function), and if you concatenate that length-0 array onto the array with unknowns, it would give the appropriate type to those unknowns. If the types conflict, you'd get unions, which might be the right thing.

This should be turned into an issue, for brainstorming how to make that function.

Originally posted by @jpivarski in #2337 (comment)

@agoose77
Copy link
Collaborator

@jpivarski is this covered by #2365?

@jpivarski
Copy link
Member Author

That's exactly what this is. It can go in that PR as "Successfully merging this pull request may close these issues."

@jpivarski jpivarski added the duplicate This issue or pull request already exists label Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants