0

I am wondering if it is at least theoretically possible for Ethereum to have a language that is loose/weak typing. From what I've seen all the languages on Ethereum are static typed. My understanding is that it has something to do with immutability whereby if a language is not strongly typed it will break the immutable nature of Ethereum. Can someone shed some light on this?

1
  • The EVM is Turing complete. In theory it could run any program. Perhaps it is not feasible due to the limited resources available.
    – Ismael
    Sep 13, 2022 at 4:11

2 Answers 2

1

I think Solidity is a static language for security reasons, you wouldn't want your code to be flexible.

1

There is a Python implementation of Ethereum called Py-EVM that has support for the low level primitives for the current Ethereum 1.0 chain and emerging support for the upcoming Ethereum 2.0.

2
  • Thanks. Can you deploy python code onto that VM?
    – zunior
    Sep 12, 2022 at 21:02
  • Yes, you need Web3.py Sep 12, 2022 at 21:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.