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

support nested dicts, maps and dicts-maps in options #694

Closed
wants to merge 1 commit into from

Conversation

Dspil
Copy link
Contributor

@Dspil Dspil commented Oct 26, 2023

The new two tests added in this PR were reported by Markus as not type-checking properly.
The problem was with the nested dicts where with a dict m, the expression m[1][1] would not typecheck since m[1] instead of type MathMapT has the InternalSingleMulti type.
Similar problem existed with options.

@Dspil Dspil requested a review from jcp19 October 26, 2023 15:09
Copy link
Contributor

@jcp19 jcp19 left a comment

Choose a reason for hiding this comment

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

I am not sure if adding all these case distinctions is the way to go because of all the redundancy that it introduces. I think that a more maintainable way is to use Single like I did in #699 (I was gonna add this solution as a code suggestion, but it actually became harder to explain that way :D)

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