In Routine§
See primary documentation in context for trait is hidden-from-backtrace
multi trait_mod:<is>(Routine, :!)
Hides a routine from showing up in a default backtrace. For example
sub inner ;sub outer ;outer();
produces the error message and backtrace
OH NOEZ in sub inner at bt.raku:1 in sub outer at bt.raku:2 in block <unit> at bt.raku:3
but if inner
is marked with hidden-from-backtrace
sub inner is hidden-from-backtrace ;sub outer ;outer();
the error backtrace does not show it:
OH NOEZ in sub outer at bt.raku:2 in block <unit> at bt.raku:3