Skip to content

perlapi/perlintern: Note binary-compatibility-only entries #23332

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

Open
wants to merge 1 commit into
base: blead
Choose a base branch
from

Conversation

khwilliamson
Copy link
Contributor

Some API elements exist only so that already-existing uses of them can continue to use them without change. Generally newer/shinier methods have come along to accomplish the tasks these do, and new code should use those newer methods.

It effectively is deprecated to use these for new code.

This commit changes perlapi and perlintern to highlight such elements as not being wise to use going forward. Also, we should feel no pressure to add documention on how to use these elements. The code that already uses them probably already knows how to use them. And if it isn't using them properly, it would be advantageous to convert to use the shinier method, instead of trying to figure out how to get the old one to work.

However, this change shows that some elements are wrongly marked as being binary-compatibility only. The list of these needs to examined, and other commits made to remove that marking when appropriate. The list is contained in

http://nntp.perl.org/group/perl.perl5.porters/269936

  • This set of changes does not require a perldelta entry.

Some API elements exist only so that already-existing uses of them can
continue to use them without change.  Generally newer/shinier methods
have come along to accomplish the tasks these do, and new code should use
those newer methods.

It effectively is deprecated to use these for new code.

This commit changes perlapi and perlintern to highlight such elements as
not being wise to use going forward.  Also, we should feel no pressure
to add documention on how to use these elements.  The code that already
uses them probably already knows how to use them.  And if it isn't using
them properly, it would be advantageous to convert to use the shinier
method, instead of trying to figure out how to get the old one to work.

However, this change shows that some elements are wrongly marked as
being binary-compatibility only.  The list of these needs to examined,
and other commits made to remove that marking when appropriate.  The
list is contained in

http://nntp.perl.org/group/perl.perl5.porters/269936
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.

1 participant