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

Deprecate accepting old apostrophe package separator in Mojo::Loader #2193

Merged
merged 2 commits into from
Aug 13, 2024

Conversation

Grinnz
Copy link
Contributor

@Grinnz Grinnz commented Aug 13, 2024

Summary

The first commit removes use of the ' package separator in tests, to resolve #2085 (which is now an error in the latest Perl development releases which will remove that feature).

The second commit deprecates calls to Mojo::Loader::load_class that contain a ' package separator.

Motivation

The feature will be removed in upcoming versions of Perl.

References

#2085, Perl/perl5#22504

@Grinnz Grinnz changed the title Deprecate accepting old apostrophe package separator Deprecate accepting old apostrophe package separator in Mojo::Loader Aug 13, 2024
@kraih
Copy link
Member

kraih commented Aug 13, 2024

Do we really need to deprecate this considering it will be removed from Perl?

Copy link
Member

@marcusramberg marcusramberg left a comment

Choose a reason for hiding this comment

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

lgtm

@Grinnz
Copy link
Contributor Author

Grinnz commented Aug 13, 2024

I have no particular attachment to deprecating it, but it may be a helpful indication before it silently starts treating it as an invalid class name, on all the current Perls where it will still technically be valid.

@Grinnz
Copy link
Contributor Author

Grinnz commented Aug 13, 2024

That said, I would be very surprised if any code relies on this using Mojolicious.

@mergify mergify bot merged commit e8d65dc into mojolicious:main Aug 13, 2024
11 checks passed
@Grinnz Grinnz deleted the apostrophe-separator-removal branch August 17, 2024 04:40
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.

Old package separator "'" deprecated at (eval 68) line 1.
3 participants