diff options
| author | Marko Bencun <[email protected]> | 2017-07-24 08:45:58 +0200 |
|---|---|---|
| committer | Marko Bencun <[email protected]> | 2017-07-25 12:37:53 +0200 |
| commit | 4a7a4ff1f1f327d68fafc0d413f16ad0fdf656af (patch) | |
| tree | 64c9d46c521e8f6fac2c08a53608ba5fc8230c2e /doc | |
| parent | Merge #10789: Punctuation/grammer fixes in rpcwallet.cpp (diff) | |
| download | discoin-4a7a4ff1f1f327d68fafc0d413f16ad0fdf656af.tar.xz discoin-4a7a4ff1f1f327d68fafc0d413f16ad0fdf656af.zip | |
developer-notes: add reference to snake_case and PascalCase
CamelCase is ambiguous as it refers to both lowerCamelCase and
UpperCamelCase, whereas PascalCase is only UpperCamelCase.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/developer-notes.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/developer-notes.md b/doc/developer-notes.md index 81bdcc9fd..458e7bcbf 100644 --- a/doc/developer-notes.md +++ b/doc/developer-notes.md @@ -28,12 +28,12 @@ tool to clean up patches automatically before submission. required when doing so would need changes to significant pieces of existing code. - Variable and namespace names are all lowercase, and may use `_` to - separate words. + separate words (snake_case). - Class member variables have a `m_` prefix. - Global variables have a `g_` prefix. - Constant names are all uppercase, and use `_` to separate words. - - Class names, function names and method names are CamelCase. Do not prefix - class names with `C`. + - Class names, function names and method names are UpperCamelCase + (PascalCase). Do not prefix class names with `C`. - **Miscellaneous** - `++i` is preferred over `i++`. |