Convert struct argument between pattern and object #11113
Labels
A-assists
C-feature
Category: feature request
S-actionable
Someone could pick this issue up and work on it right now
Some times manipulating a single object is useful, other times it's preferable / more convenient to explode the struct right at the parameter and manipulate its sub-components only.
Would be useful to have that built-in.
This might be part of a wider set of conversions around parameters e.g. "introduce parameter object" is a classic, in Rust it could be replacing multiple parameters by a single tuple or struct, and converting name to pattern (and pattern to name) could be a sibling assist.
The text was updated successfully, but these errors were encountered: