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

fix: Use same bound type for start and end of iteration #67

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

webmaster128
Copy link
Member

Before this change I ran into the problem of obscure error messages due to inability to infer the bound type for a None value. I hit it in a contract as follows:

Bildschirmfoto 2024-09-20 um 23 36 56

I could reproduce the problem in the local test cases with None starts or ends. I don't think that we need to support different start and end bound types in the same call. Users can convert then in the unlikely event that they come in different types. But let me know if this is an important feature which I did not understand.

Copy link
Collaborator

@uint uint left a comment

Choose a reason for hiding this comment

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

Ah. This isn't an important feature, I just didn't have a good reason to keep these two types equal. Now I do!

@webmaster128 webmaster128 marked this pull request as ready for review September 23, 2024 15:00
@webmaster128
Copy link
Member Author

👍

Marked as ready. Anything else we need to add here (CHANGELOG or breakage consideration)? If not, feel free to merge

@uint
Copy link
Collaborator

uint commented Sep 23, 2024

Actually, any chance you could prepend fix: to the commit? Then the changelog generator will pick the commit msg up. That's about it.

@webmaster128
Copy link
Member Author

Does it have to be the commit or do PRs also work? I see many projects doing that on PR level.

@uint
Copy link
Collaborator

uint commented Sep 23, 2024

Does it have to be the commit or do PRs also work? I see many projects doing that on PR level.

No idea, we could try and see if it works.

@webmaster128 webmaster128 changed the title Use same bound type for start and end of iteration fix: Use same bound type for start and end of iteration Sep 23, 2024
@webmaster128 webmaster128 merged commit ded4533 into main Sep 23, 2024
2 checks passed
@webmaster128 webmaster128 deleted the start-end-bound branch September 23, 2024 16:43
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