Skip to content
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

Support field prefixes #6

Open
akokuliuk opened this issue May 7, 2015 · 5 comments
Open

Support field prefixes #6

akokuliuk opened this issue May 7, 2015 · 5 comments

Comments

@akokuliuk
Copy link

are you support prefixes for field, like "mName"?

@vbauer
Copy link
Owner

vbauer commented May 7, 2015

No, for what purpose? I think prefixes are generally used in languages like C or C++, but not in Java.

@akokuliuk
Copy link
Author

Prefixews in java are good practice, because prefix tells you a scope of this variable, for example when you see variable with prefix "m", you than this variable is field, or var with "_" - is static variable etc.

@vbauer
Copy link
Owner

vbauer commented May 7, 2015

I have been developing on Java for 10 years and do not know a lot of projects with prefixes. Usually IDEs (or syntax highlighters) use different font styles and colors to show this information, for example Intellij IDEA shows:

  • "static" variables with cursive font
  • "final" variables with bold font
  • field variables with bold non-cursive font

@vbauer
Copy link
Owner

vbauer commented May 7, 2015

I need to think about this feature, maybe it could sense for some developers.

@akokuliuk
Copy link
Author

Another example: when you need to find and use class field, you may type, for example, "m" and autocomplete shows you all class members.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants