google / google/styleguide

Explain what a special prefix/suffix is

Open
#326 1 comment 1 reaction 0 assignees View on GitHub
lang:java
Dominant language
HTML
Stars
39.6k
Forks
12.9k
Avg merge
42m
Merged PRs (30d)
15

Description

https://google.github.io/styleguide/javaguide.html#s5.1-identifier-names

> In Google Style special prefixes or suffixes, like those seen in the examples name_, mName, s_name and kName, are not used.

Can you please elaborate and explain what you deem to be a special prefix/suffix and update the guide with such definition and how the current list of examples violate it?
Is it referring to [Hungarian notation](https://en.wikipedia.org/wiki/Hungarian_notation#Examples) or something else?

> mName

Would any single letter before `Name` violate this as special, or are there some cases where it would be acceptable? Ex: eName

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.