Skip to content

Conversation

@leonerd
Copy link
Contributor

@leonerd leonerd commented Dec 3, 2025

Prior to this, toke.c and perly.y used the token name THING for a number of apparently totally unrelated reasons. While I haven't attempted to fix most of them, I did find that the one used for attribute lists is unrelated to the others, so I have renamed that to something more sensible and meaningful.

I intend that this change should have no visible effects on anything as it should just be internal neatening and renaming. I'm relatively confident this use of THING was isolated from the others due to the unique appearance of the COLONATTR that goes with it. But the complexities of tokenization and parsing mean I'm not 100% sure there isn't some weird twisty cornercase that I haven't noticed, and might break somewhere. We should keep an eye on CPAN test reports post-merge on this one.

  • This set of changes may require a perldelta if we think there's a risk it is CPAN-visible

Prior to this, toke.c and perly.y used the token name `THING` for a
number of apparently totally unrelated reasons. While I haven't
attempted to fix most of them, I did find that the one used for
attribute lists is unrelated to the others, so I have renamed that to
something more sensible and meaningful.
@leonerd leonerd merged commit 980fade into Perl:blead Dec 4, 2025
34 checks passed
@leonerd leonerd deleted the rename-THING-for-attributes branch December 4, 2025 14:45
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.

2 participants