Skip to content

Commit 08d3a32

Browse files
committed
Mention other CPAN modules that provide named parameters in signatures
1 parent 85e963c commit 08d3a32

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ppcs/ppcTODO-signature-named-parameters.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,16 @@ sub next_match_captures ( $self, %options )
134134

135135
The [`XS::Parse::Sublike`](https://metacpan.org/pod/XS::Parse::Sublike) module contains parsing to allow third-party syntax modules to parse subroutine-like constructions, and includes a parser for named parameters already having this syntax. These are also made available to regular subroutines via the `extended` keyword provided by [`Sublike::Extended`](https://metacpan.org/pod/Sublike::Extended).
136136

137+
Additionally, other existing CPAN modules already parse syntax in this, or a very similar format:
138+
139+
* [`Function::Parameters`](https://metacpan.org/pod/Function::Parameters)
140+
141+
* [`Kavorka`](https://metacpan.org/dist/Kavorka/view/lib/Kavorka/Manual/Signatures.pod)
142+
143+
* [`Method::Signatures`](https://metacpan.org/pod/Method::Signatures)
144+
145+
All of these use the leading-colon syntax in a signature declaration to provide named parameters in the same style as this proposal. It would appear we are in good company here.
146+
137147
## Future Scope
138148

139149
* If the Metaprogramming API (PPC0022) gains introspection abilities to enquire about subroutine signature parameters, further consideration will need to be made in that API on how to represent the extra kinds of parameters added by this specification.

0 commit comments

Comments
 (0)