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

Investigate whether Int ranges can be supported like Double ranges #3

Open
propensive opened this issue Jan 2, 2023 · 2 comments
Open
Assignees
Labels
api Relates to the API design enhancement An improvement to existing functionality minor Has only a small impact for the majority of users question Looking for an answer

Comments

@propensive
Copy link
Owner

No description provided.

@propensive propensive added enhancement An improvement to existing functionality question Looking for an answer api Relates to the API design minor Has only a small impact for the majority of users labels Jan 2, 2023
@propensive propensive self-assigned this Jan 2, 2023
@propensive propensive added this to the Platane milestone Jan 2, 2023
@propensive propensive removed this from the Platane milestone Oct 8, 2023
@propensive
Copy link
Owner Author

It may be possible to use match types to overload the ~ operator to work for Ints as well as Doubles.

@propensive
Copy link
Owner Author

It might be possible to define infix types to get the syntax Int within 6 ~ 21 and Double within -1.0 ~ 1.0, where the bounds would be the same type as the surrounding type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Relates to the API design enhancement An improvement to existing functionality minor Has only a small impact for the majority of users question Looking for an answer
Projects
Status: Todo
Development

No branches or pull requests

1 participant