Skip to content

Conversation

@leonerd
Copy link
Contributor

@leonerd leonerd commented Oct 14, 2024

Suggests not to try replacing builtin:: functions, because it may break various optimisations.

This is an alternative to #22657

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

@leonerd leonerd force-pushed the document-builtin-optimisations branch from 6a48150 to 2716541 Compare October 14, 2024 20:34
such as by assignment into glob references. It is suggested not to do this,
so that the optimiser can correctly work out that intention of code which
calls these functions.
Copy link
Contributor

@wolfsage wolfsage Oct 17, 2024

Choose a reason for hiding this comment

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

"would be no longer be" -> "would no longer be".

"work out that intention" -> "work out the intention" (maybe?)

The whole thing feels very passive voice.

Maybe:

There are a number of optimisations that apply to functions in the L<builtin> package. If you
replace or override these functions, the optimisations may not take effect. Do so with caution.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ahyes, some better words.

…ich may stop working if the functions are replaced
@leonerd leonerd force-pushed the document-builtin-optimisations branch from 2716541 to c873b68 Compare October 23, 2024 12:26
@leonerd
Copy link
Contributor Author

leonerd commented Oct 23, 2024

Reworded by @wolfsage 's suggestion

@leonerd leonerd merged commit a8a74a8 into Perl:blead Oct 25, 2024
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.

3 participants