Subject: | Clarify "may" in the docs in relation to using constraint => quote_sub q{...} |
In https://metacpan.org/module/TOBYINK/Type-Tiny-0.014/lib/Type/Tiny/Manual/Libraries.pod#Inlining
it says:
"Note that defining a type constraint in terms of a constraint coderef and an inlining coderef can be a little repetitive. Sub::Quote provides an alternative that reduces repetition (though the inlined code might not be as compact/good/fast)."
I'd really like to know more about this. Specifically:
a) can it be as fast as inline_as for simple cases, like the one shown in the example? If not please explain document what the overhead is.
b) If so, under what circumstances does it become slower and why?