Skip to Content
Ethereum Cookbook
book

Ethereum Cookbook

by Manoj P R
August 2018
Intermediate to advanced
404 pages
11h 19m
English
Packt Publishing
Content preview from Ethereum Cookbook

Function as a type in solidity

In a statically typed language such as solidity, the type of each variable needs to be specified at compile time. To support this, solidity provides both inbuilt data types and user-defined data types. These elementary types include integer, Boolean, mapping, struct, and so on. Apart from these types, solidity allows defining functions a type. This helps to add several features such as invoking a dynamic callback function after a certain task.

In this recipe, you will learn to create and use functions as a type in solidity.

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 Ethereum Dapps

Building Ethereum Dapps

Roberto Infante
Ethereum For Dummies

Ethereum For Dummies

Michael G. Solomon

Publisher Resources

ISBN: 9781789133998Supplemental Content