Thanks for sharing your input Tomm Carr
The C language or Java of allowing argument value is non-ideal. Below is an example in Kotlin. It won’t even compile.
Of course when we have
this, then it colors out clearly they are different
Agree, it is not ideal to be assigning member variables for parallel code. It is not ideal to have a mutable variable as a member variable. As much as possible, we should have immutable variables, and try to use more pure functional approaches than merely object-oriented approaches of coding and mutability.
Modern languages are heading towards these directions. Things has changed much.