introduction.rst 1.1 KB

123456789101112131415161718192021222324252627282930
  1. .. _language-status:
  2. Brief Language status
  3. =====================
  4. The Solidity language supported by Solang aims to be compatible with the latest
  5. `Ethereum Foundation Solidity Compiler <https://github.com/ethereum/solidity/>`_,
  6. version 0.8 with some small exceptions.
  7. .. note::
  8. Where differences exist between different targets or the Ethereum Foundation Solidity
  9. compiler, this is noted in boxes like these.
  10. As with any new project, bugs are possible. Please report any issues you may find to github.
  11. Differences:
  12. - libraries are always statically linked into the contract code
  13. - Solang generates WebAssembly or BPF rather than EVM.
  14. Unique features to Solang:
  15. - Solang can target different blockchains and some features depending on the target.
  16. For example, Parity Substrate uses a different ABI encoding and allows constructors
  17. to be overloaded.
  18. - Events can be declared outside of contracts
  19. - Base contracts can be declared in any order
  20. - There is a ``print()`` function for debugging
  21. - Strings can be formatted with python style format string, which is useful for debugging: ``print("x = {}".format(x));``