Solidity Flashcards
compiled language
source codes need to be converted into executable codes
interpreted language
source codes are interpreted at run time (python, r, Matlab, javascript)
CL
typically much fast
Solidity is
compiled into bwtecode for ether virtual machine
pragma solidity 0.4.0
species which solidity copier version to use
public stored data
declare a publicly accessible state variable of type
uint
unsigned 256-bit integer
case sensitive
variable names are case sensitive
each statement should end in a
semicolon, exception being the fancy brackets that enclose the code
white spaces
space, tab, enter don’t matter in code
comments are in
C style, they won’t be processed
//
short, one line comment
/*
*/
long, multi-line comment about the program
variable name
first character must be an ASCII letter (upper or lowercase or underscore)
a number
can’t be used as the first character