Difference between revisions of "Type system"

From OXPL Wiki
Jump to navigation Jump to search
(Add primitive types)
(Add basic composite types)
Line 22: Line 22:
 
* character: <tt>char</tt>
 
* character: <tt>char</tt>
 
* boolean: <tt>bool</tt>
 
* boolean: <tt>bool</tt>
 +
 +
== Composite types ==
 +
* array: <tt>arr</tt>
 +
* string: <tt>str</tt>

Revision as of 17:18, 20 January 2021

The type system of OXPL will be static and strong.

Primitive types

The primitive types are the most basic ones.

  • integer
    • signed
      • int8
      • int16
      • int32
      • int64
      • int128
    • unsigned
      • uint8
      • uint16
      • uint32
      • uint64
      • uint128
  • float
    • float32
    • float64
  • character: char
  • boolean: bool

Composite types

  • array: arr
  • string: str