diff options
author | Piper Merriam <pipermerriam@gmail.com> | 2015-12-17 23:57:02 +0800 |
---|---|---|
committer | Piper Merriam <pipermerriam@gmail.com> | 2015-12-17 23:57:02 +0800 |
commit | d1882bc7539865ef067c65f9d9dc074ca9530a8a (patch) | |
tree | 617986feba9e734650dc804c935dcef34bace809 /docs/style-guide.rst | |
parent | d63ae5a5fa3ae259abdcdbc97c16fbed4d0b98ae (diff) | |
download | dexon-solidity-d1882bc7539865ef067c65f9d9dc074ca9530a8a.tar.gz dexon-solidity-d1882bc7539865ef067c65f9d9dc074ca9530a8a.tar.zst dexon-solidity-d1882bc7539865ef067c65f9d9dc074ca9530a8a.zip |
use mixedCase
Diffstat (limited to 'docs/style-guide.rst')
-rw-r--r-- | docs/style-guide.rst | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/docs/style-guide.rst b/docs/style-guide.rst index 4e9a0182..2c979296 100644 --- a/docs/style-guide.rst +++ b/docs/style-guide.rst @@ -559,15 +559,11 @@ naming styles. * ``UPPERCASE`` * ``UPPER_CASE_WITH_UNDERSCORES`` * ``CapitalizedWords`` (or CapWords) - -.. note:: When using abbreviations in CapWords, capitalize all the letters of the abbreviation. Thus HTTPServerError is better than HttpServerError. - - -The following naming conventions are discouraged. - * ``mixedCase`` (differs from CapitalizedWords by initial lowercase character!) * ``Capitalized_Words_With_Underscores`` +.. note:: When using abbreviations in CapWords, capitalize all the letters of the abbreviation. Thus HTTPServerError is better than HttpServerError. + Names to Avoid ============== @@ -595,7 +591,7 @@ Events should be named using the CapWords style. Function Names ============== -Functions should be lowercase with words separated by underscores. +Functions should use mixedCase. Function Arguments @@ -608,8 +604,7 @@ should be the first argument and should always be named ``self``. Contract and Local Variables ============================ -Use lowercase words separated by underscores. Use trailing underscores to -avoid collisions with reserved names. +Use mixedCase. Constants |