Skip to content

[RFC] Max_Size aspect for tagged types #94

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

Merged
merged 2 commits into from
Feb 10, 2023
Merged

Conversation

raph-amiard
Copy link
Member

@raph-amiard raph-amiard commented Nov 23, 2022

@mosteo
Copy link

mosteo commented Nov 30, 2022

I can see myself easily abusing this one to have definite classwide objects, just like tagged is sometimes used just to get dot notation. Maybe because I do think that Ada would greatly benefit from having a native way to use indefinites as definites, beyond the clunkly Indefinite_Holders.

I guess my kind-of-a-point is that this proposal seems very specific but the interest on what it does may be of a wider scope.

@raph-amiard
Copy link
Member Author

@mosteo

I can see myself easily abusing this one to have definite classwide objects, just like tagged is sometimes used just to get dot notation. Maybe because I do think that Ada would greatly benefit from having a native way to use indefinites as definites, beyond the clunkly Indefinite_Holders.

I guess my kind-of-a-point is that this proposal seems very specific but the interest on what it does may be of a wider scope.

You're correct. This proposal is intended to be one of a bunch that will allow constrained versions of types that were necessarily unconstrained so far (see #97 for another example)

@raph-amiard raph-amiard merged commit 64e1498 into master Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Need implem
Development

Successfully merging this pull request may close these issues.

4 participants