Are solidity compiler versions backwards compatible? #267
Answered
by
alymurtazamemon
sadityakumar9211
asked this question in
Q&A
-
So, I started learning solidity today and being a C++ programmer, I wondered if the solidity compiler versions are backwards compatible? Can we write the older syntax and compiler the code using the latest version? would it even work? I am not able to wrap my head around it. |
Beta Was this translation helpful? Give feedback.
Answered by
alymurtazamemon
Jun 11, 2022
Replies: 1 comment
-
No, you can not compile the older version code with the latest version, but what you can do is to write version-specific code. Just specify the version and write code according to it. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sadityakumar9211
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, you can not compile the older version code with the latest version, but what you can do is to write version-specific code. Just specify the version and write code according to it.