automatic parameter assignment with matching varia...
# language-proposals
e
automatic parameter assignment with matching variable name. Imagine you have
Copy code
class Entity(val fields: Fields = ..,
             val inner: Inner = ..,
             val owner: Owner? = null)
right now if I want to pass
owner
, I have to use named parameters
Entity(owner = owner)
, which is redundant if the variable naming matches, imho
m
what if you rename the variable to
inner
while refactoring?
1
e
then the refactoring should fall back to something working, like named parameters