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

Basic code modernization #480

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

haarg
Copy link
Contributor

@haarg haarg commented Jun 10, 2024

Removes the use of AutoLoader. It's an optimization that hasn't been relevant for decades. This required fixing a number of syntax and compile errors in the autoloaded subs. The autoloaded subs with compile errors haven't worked since at least perl 5.8, so they could be removed. But for now they were left in place.

Removes the use of use vars, which hasn't been needed since perl 5.6.

Removes the fallback to DynaLoader, which hasn't been needed since perl 5.8.

haarg added 8 commits June 10, 2024 16:47
This module requires perl 5.8.1, it can use our. This also better
prepares for using strict properly.
This module requires perl 5.8.1, XSLoader is always available.
Assigning a scalar to splice has been a compile error since at least
perl 5.8, so these subs are definitely never used and could be deleted.
But it's also simple to fix them.
AutoLoader has not been a reasonable optimization for a long time.
There is no reason to prefer use vars over our since we require perl
5.8.1.
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.

1 participant