feature / variable | constant | immutable |
---|---|---|
cannot be modified | ✔️ | ✔️ |
can be assigned at constructor | ❌ | ✔️ |
define at file level | ✔️ | ❌ |
gas price compared to regular variables | lowest | lower |
supported types | strings + value types | only value types |
Created
March 25, 2022 13:25
-
-
Save rzvl/0b0418ae97cefb7c5dfca832ea9cf806 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment