Skip to content

Conversation

@leonerd
Copy link
Contributor

@leonerd leonerd commented Oct 31, 2025

Rather than stop immediately at the first failure, we can be a bit more helpful by collecting up potentially multiple names at once.

We limit the list to 5 elements, just to limit the potential output in the case of accidentally passing a list of hundreds or thousands of elements into such a function.

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

@leonerd leonerd force-pushed the named-parameters-collect-errors branch from 9eeb8b1 to 2414522 Compare October 31, 2025 21:09
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.

Thanks for this.

As written, the plural form if piped to splain will not find the diag entry. I think it should.

I believe you can achieve that by either having a =item section for both forms (one right after the other) or change this:

=item Unrecognized named parameter '%s' to subroutine '%s'

To this:

=item Unrecognized named parameter%s '%s' to subroutine '%s'

@leonerd leonerd force-pushed the named-parameters-collect-errors branch from 2414522 to dee8bc5 Compare November 3, 2025 12:02
Rather than stop immediately at the first failure, we can be a bit more
helpful by collecting up potentially multiple names at once.

We limit the list to 5 elements, just to limit the potential output in
the case of accidentally passing a list of hundreds or thousands of
elements into such a function.
@leonerd leonerd force-pushed the named-parameters-collect-errors branch from dee8bc5 to b1671d9 Compare November 3, 2025 12:17
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