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

Interfaces can no longer be used as types. #675

Merged

Conversation

InsertCreativityHere
Copy link
Member

This implements the parser side of #673.

Interfaces can no longer be used as a type in Slice; i.e. it no longer implements the Type trait.

On a more conceptual level. Defining an interface no longer implicitly defines a corresponding proxy type.

Copy link
Member

@externl externl left a comment

Choose a reason for hiding this comment

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

Looks good. See comment.

src/patchers/encoding_patcher.rs Outdated Show resolved Hide resolved
Comment on lines 41 to 42
// But since interfaces aren't a type, we don't need to store the result of this computation, since
// nothing can reference this interface except other interfaces.
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

You're correct. I added a function to Interface to still expose its supported encodings.

Copy link
Contributor

@ReeceHumphreys ReeceHumphreys left a comment

Choose a reason for hiding this comment

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

Looks good.

@InsertCreativityHere InsertCreativityHere merged commit 362a43a into icerpc:main Nov 22, 2023
4 checks passed
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.

3 participants