- use Lexical::Types as => sub { 'My', 'new_' . lc($_[0]) };
- my Str $x; # the coderef indicates to call My->new_str
+ * either an empty list, in which case the current typed lexical
+ definition will be skipped (thus it won't be altered to trigger
+ a run-time hook) ;
+
+ use Lexical::Types as => sub { return $_[0] =~ /Str/ ? () : @_ };
+ my Str $x; # nothing special
+ my Int $y; # calls Int->TYPEDSCALAR
+
+ * or the desired package and method name, in that order (if any of
+ those is "undef", the default value will be used instead).
+
+ use Lexical::Types as => sub { 'My', 'new_' . lc($_[0]) };
+ my Str $x; # the coderef indicates to call My->new_str