This commit is contained in:
Igor Żuk 2023-09-14 17:56:34 +02:00 committed by GitHub
commit 18f4098d4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -26,6 +26,7 @@ Important Bugfixes:
Language Features: Language Features:
* Allow qualified access to events from other contracts. * Allow qualified access to events from other contracts.
* Relax restrictions on initialization of immutable variables. Reads and writes may now happen at any point at construction time outside of functions and modifiers. Explicit initialization is no longer mandatory. * Relax restrictions on initialization of immutable variables. Reads and writes may now happen at any point at construction time outside of functions and modifiers. Explicit initialization is no longer mandatory.
* Make mixedCase the recommended naming style for constants.
Compiler Features: Compiler Features:

View File

@ -1260,8 +1260,11 @@ Use mixedCase. Examples: ``totalSupply``, ``remainingSupply``, ``balancesOf``, `
Constants Constants
========= =========
Constants should be named with all capital letters with underscores separating Constants should use mixedCase. Examples: ``maxBlocks``, ``tokenName``, ``tokenTicker``, ``contractVersion``.
words. Examples: ``MAX_BLOCKS``, ``TOKEN_NAME``, ``TOKEN_TICKER``, ``CONTRACT_VERSION``.
Names with all capital letters with underscores separating words are acceptable
only in legacy code and for implementing existing interfaces requiring this convention.
Examples: ``MAX_BLOCKS``, ``TOKEN_NAME``, ``TOKEN_TICKER``, ``CONTRACT_VERSION``.
Modifier Names Modifier Names