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.

Image for post
Image for post

Of course when we have this, then it colors out clearly they are different

Image for post
Image for post

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.

Passionate about learning, and sharing mobile development and others https://twitter.com/elye_project https://www.facebook.com/elye.proj

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store