The most striking feature of solidity lies in its resemblance to ECMA Script standards (ES6 Harmony). To begin with, a solidity source file layout contains an arbitrary number of contract definitions along with pragma directives and optional imports at a global scope along with comments.
Nuances, syntax, and features of solidity
Pragma, import, and comments
A pragma directive of solidity always has versions in the form 0.x.0 or x .0.0, as shown in Figure 6.1. This ensures that any future version of the solidity compiler is ignored that might introduce incompatibility:
Figure 6.1: Pragma directives
Although solidity does not have the ability to export or spool-out results yet, it supports import statements, which are very...