37 - Value Type
Types that are passed by value, i.e. they are always copied when they are used as function arguments or in assignments:
- Booleans
- Integers
- Fixed Point Numbers
- Address Type
- Contract
- Fixed-size Bytes Arrays (bytes1, bytes2, …, bytes32)
- Literals:
- Address
- Rational
- Integer
- String
- Unicode
- Hexadecimal
- Enums
- Functions
- Types: Value & Reference
- Value: Passed by Value
- Copied: Arguemtns/Assignments
- E.g.: Boolean, Integer, Address, Enums, etc.
- Security: Copy -> Safer
- Check -> Persistence