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

refactor: Refactor AssignTypes #1298

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

scolsen
Copy link
Contributor

@scolsen scolsen commented Aug 9, 2021

This commit contains a minimal refactor of the AssignTypes module:

  • Add an export list.
  • Use the xobj patterns defined in the Forms module.
  • Break out local functions into top level declarations.

scolsen added 2 commits August 9, 2021 12:53
This commit contains a minimal refactor of the AssignTypes module:

- Add an export list.
- Use the xobj patterns defined in the Forms module.
- Break out local functions into top level declarations.
@eriksvedang
Copy link
Collaborator

I like this a lot, very cool!

There are warnings and errors in the test suite though...

isArrayTypeOK (StructTy (ConcreteNameTy (SymPath [] "Array")) [RefTy _ _]) = False -- An array containing refs!
isArrayTypeOK _ = True
assignTypes mappings x@(ListPat xs) =
mapM (assignTypes mappings) xs >>= pure . (setObj x) . Lst
Copy link
Collaborator

Choose a reason for hiding this comment

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

superfluous parenthesis in between the ., right?

@eriksvedang
Copy link
Collaborator

@scolsen Do you know what's up with the errors here?

@scolsen
Copy link
Contributor Author

scolsen commented Aug 23, 2021

@scolsen Do you know what's up with the errors here?

Didn't look into it just yet, I'll try to take a look later today!

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