Problem or new feature
In /language/variables#index-entry-declaring_a_list_of_variables placeholder variables are not mentioned and the description in /language/signatures does not contain a reference to destructuring assignment.
Suggestions
my ($first-name, $, $lastname) = <Jean-Baptiste Emanuel Zorg>;
It is also possible to use a type-object instead of $ as a placeholder. However, currently this is not supported in v6.d (see: Rakudobug #6111)
Where-clauses are also supported in list-assigment.
my ($answer, $ where .Int > 1) = (42, π);
All cases are covered in Roast in numerous tests.
Problem or new feature
In
/language/variables#index-entry-declaring_a_list_of_variablesplaceholder variables are not mentioned and the description in/language/signaturesdoes not contain a reference to destructuring assignment.Suggestions
It is also possible to use a type-object instead of
$as a placeholder. However, currently this is not supported in v6.d (see: Rakudobug #6111)Where-clauses are also supported in list-assigment.
All cases are covered in Roast in numerous tests.