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

Ruby: use a valid instance variable name for descriptor #10282

Merged
merged 1 commit into from
Aug 9, 2022

Conversation

casperisfine
Copy link
Contributor

Setting an instance variable without an @ prefix makes it unacessible from the Ruby side, which prevent introspection by various tools.

I see no reason to prevent this.

Setting an instance variable without an `@` prefix makes it
unnacessible from the Ruby side, which prevent introspection
by various tools.

I see no reason to prevent this.
@haberman
Copy link
Member

haberman commented Aug 9, 2022

We want to reduce the public API surface so that we have the freedom to change the internals.

That said, I think it's generally understood that @-prefixed instance variables are private and not part of the API contract. So this seems ok to me.

@haberman haberman merged commit e83492d into protocolbuffers:main Aug 9, 2022
@casperisfine casperisfine deleted the ruby-usable-ivar branch August 10, 2022 08:39
@casperisfine
Copy link
Contributor Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants