Add a feature specification for the metaobject proposal#4301
Merged
Conversation
mateusfccp
reviewed
Mar 25, 2025
lrhn
reviewed
Mar 27, 2025
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
eernstg
commented
Mar 28, 2025
Member
Author
There was a problem hiding this comment.
Lots of improvements, PTAL!
The change to a more abstract approach does get a little bit silly when we have to reinvent covariant along the way, but it does also make some other things simpler. I think it's a slight improvement on average.
However, it's a major point in the design of this feature that it does not introduce a lot of completely new from-scratch primitive semantics, it is simply a way to transform a type C<T1 .. Tk> to an object MetaC<T1 .. Tk>, and all the expressive power follows from that, based on well-established mechanisms like superinterfaces, overriding declarations, etcetc.
sgrekhov
reviewed
Mar 31, 2025
sgrekhov
reviewed
Mar 31, 2025
a2bab3b to
3db7641
Compare
3db7641 to
2184154
Compare
Member
Author
|
I'll land this now, and we can then take detailed discussions in separate language issues, as usual. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a feature specification for the metaobject proposal (formerly known as 'more capable Type objects'). For simplicity, it does not include the part about
Type.reify(that will be specified separately).