Gas optimization: Constant and Immutable. #6658
Unanswered
EddiePumpin
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I think not, because 'constant' I believe must be used when you are declaring and initializing the variable simultaneously, 'immutable' is used when you plan to initialize it later in another function, most likely a 'constructor'. Correct me if I am wrong, please |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Can Constant and Immutable be used interchangeably?
Beta Was this translation helpful? Give feedback.
All reactions