Skip to content

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