-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hungarian Notation #4
Comments
Kotlin has no fields (only backing fields) but Properties. The m-Prefix doesn't make sense here. In worst case it would create getters such as Don't use the m-Prefix in Kotlin |
ASOP Java Code Style is for Android Open Source contributors, and should not be followed unless you're contributing to Android Open Source Project. I think it's better if the style follows the naming section of Google Java Style |
From the AOSP Java Code Style for Contributors:
Our developer survey shows that we overall like the "identifier metadata" and will stick to this convention.
We don't believe that "Today, our IDE’s can distinguish all these identifiers with colors so we don’t need any of this any more" because we often read code outside of IDEs when reviewing code.
Cédric Beust outlined his decision to introduce the
m
-prefix in his article "I am the reason for Hungarian notation in Android". Read this for further arguments for them
-prefix.The text was updated successfully, but these errors were encountered: