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

Alternative backward compatibility approach for user code #349

Merged
merged 4 commits into from
Oct 17, 2023
Merged

Conversation

hadley
Copy link
Member

@hadley hadley commented Sep 12, 2023

Fixes #326

Copy link
Contributor

@jonthegeek jonthegeek left a comment

Choose a reason for hiding this comment

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

This looks much friendlier!

@hadley hadley requested a review from t-kalinowski September 13, 2023 12:25
Copy link
Member

@t-kalinowski t-kalinowski left a comment

Choose a reason for hiding this comment

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

This is a very nice approach. Some pros:

  • It doesn't expand the exported API footprint
  • It doesn't increase the new-user learning burden nor require any extra work from users
  • Improving over the previous hack, it works even if S7 is not attached.
  • No deprecation notices will be required once this backwards compatibility hack will no longer be necessary; it will just fade away naturally with time.

Very nice!

R/property.R Show resolved Hide resolved
@hadley
Copy link
Member Author

hadley commented Oct 16, 2023

No concerns in WG call 2023-10-16

@hadley hadley merged commit 3d6c6d7 into main Oct 17, 2023
12 checks passed
@hadley hadley deleted the export-@ branch October 17, 2023 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Explain that require(S7) will cause R CMD Check WARNING & NOTE
4 participants