Type::P...arameter(3)
π Type::Params::Parameter π
okay so bestie, welcome to the User Contributed Perl Documentation page for Type::Params::Parameter β yes, that Type::Params::Parameter. β¨ itβs giving internal-signature-representation realness, and weβre gonna get into it.
π¦ NAME π¦
Type::Params::Parameter β internal representation of a parameter in a function signature. no cap. π
π¨ STATUS π¨
this module is not covered by the Type-Tiny stability policy. periodt.
π DESCRIPTION π
This is mostly internal code, but it can be used to provide basic introspection for signatures. lowkey useful for peeking at signatures, bestie. π
π Constructor π
new(%attributes) β thatβs the constructor. thatβs it, thatβs the constructor. π
π Attributes π
All attributes are read-only. no touching, bestie.
type(TypeTiny) β type constraint for the parameter.default(CodeRef|ScalarRef|Ref|Str|Undef) β a default for the parameter: either a coderef to generate a value, a reference to a string of Perl code to generate the value, a reference to an empty array or empty hash, a literal string to use as a default, or a literalundefto use as a default.strictness(Bool|ScalarRef) β a boolean indicating whether to be stricter with type checks, or a reference to a string of Perl code naming a Perl variable or constant which controls strict behaviour.clone(Bool) β the method for accessing this is calledshould_clonefor no particular reason.coerce(Bool) β defaults to true iftypehas a coercion.optional(Bool) β defaults to true if there is adefaultor iftypeis a subtype ofOptional.in_list(Bool) β boolean that is only used when the signature has thelist_to_namedfeature enabled.default_on_undef(Bool) β should the default be triggered if the caller passes an explicitundef?
π Attributes related to named parameters π
name(Str)alias(ArrayRef[Str])getter(Str)predicate(Str)
πΈ Methods πΈ
π Predicates π
Predicate methods return true/false to indicate the presence or absence of attributes.
has_typeβ presence check fortype.has_defaultβ presence check fordefault.has_strictnessβ presence check forstrictness.has_nameβ presence check forname.has_aliasβ presence check foralias.
π¦ Other methods π¦
might_supply_new_valueβ indicates that the parameter canβt simply be referenced within@_because a default value might be used, the given value might be coerced, or the given value might be cloned usingStorable.
π BUGS π
bestie, if somethingβs busted, please report any bugs to https://github.com/tobyink/p5-type-tiny/issues.
π SEE ALSO π
Type::ParamsType::Params::Signature
π AUTHOR π
Toby Inkster <tobyink@cpan.org>.
π COPYRIGHT AND LICENCE π
This software is copyright (c) 2023-2025 by Toby Inkster.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
β οΈ DISCLAIMER OF WARRANTIES β οΈ
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
π«Ά okay thatβs the whole page, bestie! this little icon is from perl v5.42.2, dated 2026-04-07, and the title on the tin is Type::P...arameter(3). mwah! π
π¦ where this page comes from
- alpine 3.24: perl-type-tiny-doc 2.010001-r0 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms