August 2018
Beginner to intermediate
350 pages
11h 58m
English
Single line (//) comments and multi-line(/* ... */) comments are used, although apart from this there is another type of comment style called Natspec Comment, which is also possible; in this type of comment, we either use /// or /** ... */, and they are to be used only earlier function declaration or statements.
Natspec is short for natural specification; these comments as per the latest solidity version (0.4.24) do not apply to variables, even if the variables are public. Here is a small code snippet with an example of such these types of comments:
pragma solidity ^0.4.19;/// @title A simulator for Batman, Gotham's Hero/// @author DC-man/// @notice You can use this contract for only the most basic simulation/// @dev All function ...
Read now
Unlock full access