Type System

Primitive Data Type

  • int is a signed 32-bit integer type.
  • long is a architecture-dependent signed 64-bit integer type.
  • float is a architecture-dependent signed IEEE 64-bit floating-point type.
  • bool is an expression with a value of true or false.
  • string is a sequence of characters in ASCII enclosed in double-quotes and excludes the double-quote character.

void

void is no associated value and can only be used as the return type for functions that return nothing. But you will not explicitly declare it, omit ret statement(recommend) or write ret will work.