Skip to content

Comments

PPC0029 Attributes v2 (phase 1)#24171

Open
leonerd wants to merge 4 commits intoPerl:bleadfrom
leonerd:attributes-v2
Open

PPC0029 Attributes v2 (phase 1)#24171
leonerd wants to merge 4 commits intoPerl:bleadfrom
leonerd:attributes-v2

Conversation

@leonerd
Copy link
Contributor

@leonerd leonerd commented Feb 6, 2026

I had been hoping to get somewhat further along with this by now, but a combination of reasons has slowed this, and the related magic-v2, so this is as far as I've got so far. I'd like to get some amount of review and consideration for merge in time for 5.44 though, as it would still be a much better place to start from.

The overall aim of PPC0029 is to allow user code (i.e. loaded modules) to define new attributes in a far more flexible way; using lexical names and interrupting the parser early in the compilation process. This PR doesn't yet achieve that, but it does reshape a lot of the internals related to attribute handling such that a later phase 2 can add that with relative ease into the foundations laid here.

Specifically, this first phase shouldn't actually introduce any user-visible changes or new behaviours, other than a slight rewording of the error messages that erroneous code would produce. The point here is simply to get all of the internals in one place, so that there is exactly one line of code (currently marked with a big "TODO" comment) in which the new lexical behaviours can be added. I intend to do that in a later PR, which itself may or maynot arrive in time for 5.44.

@leonerd leonerd added the squash-before-merge Author must squash the commits down before merging to blead label Feb 6, 2026
@leonerd leonerd force-pushed the attributes-v2 branch 6 times, most recently from 91376f6 to 84aa28f Compare February 7, 2026 17:08
@leonerd leonerd marked this pull request as ready for review February 7, 2026 18:35
@leonerd
Copy link
Contributor Author

leonerd commented Feb 7, 2026

After 5 attempts I've now made the Windows build happy as well, so this is ready for review.

Copy link
Contributor

@wolfsage wolfsage left a comment

Choose a reason for hiding this comment

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

Just a few minor notes

@Leont
Copy link
Contributor

Leont commented Feb 11, 2026

Much like Magic V2, I think we should postpone this until the next release cycle.

@leonerd leonerd added the defer-next-dev This PR should not be merged yet, but await the next development cycle label Feb 11, 2026
@leonerd
Copy link
Contributor Author

leonerd commented Feb 11, 2026

@Leont there's a GH label for that ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

defer-next-dev This PR should not be merged yet, but await the next development cycle squash-before-merge Author must squash the commits down before merging to blead

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants