"Endpoint" methods should not have *%_
in their signature
#444
Labels
language
Changes to the Raku Programming Language
*%_
in their signature
#444
As again pointed out in rakudo/rakudo#2368.
If a method is sure to not be calling any other methods, then it should have the option of not automatically codegenning the
*%_
in their signature. If that was done for the.head
method, then this example would fail with a very useful error:as opposed to just silently do the wrong thing:
because the
:$n
silently gets eaten, so it works as:The text was updated successfully, but these errors were encountered: