Skip to Content
Ethereum Smart Contract Development
book

Ethereum Smart Contract Development

by Mayukh Mukhopadhyay
February 2018
Intermediate to advanced
288 pages
6h 58m
English
Packt Publishing
Content preview from Ethereum Smart Contract Development

Expression and control structures

Expression and control structures are summarized in the following 10 pointers. For more details, jump into the solidity documentation or ask a question at the Ethereum stack exchange forum:

  • Input parameters of a contract are declared in the same way as variables. Output parameters are declared similar to input parameters just after the return keyword. Both can be used as an expression in the function body. Functions can return multiple outputs but must be the same as the number of output parameters.
  • Like JavaScript, solidity has most of the familiar control structures, except go to and switch. Unlike C and JavaScript, solidity does not have a non-Boolean to Boolean type conversion yet.
  • Recursive function ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Building Games with Ethereum Smart Contracts: Intermediate Projects for Solidity Developers

Building Games with Ethereum Smart Contracts: Intermediate Projects for Solidity Developers

Kedar Iyer, Chris Dannen

Publisher Resources

ISBN: 9781788473040Supplemental Content