Difference between revisions of "Type system"

From OXPL Wiki
Jump to navigation Jump to search
(Add basic composite types)
m
Line 12: Line 12:
 
*** <tt>int128</tt>
 
*** <tt>int128</tt>
 
** unsigned
 
** unsigned
*** <tt>uint8</tt>
+
*** [[uint8|<tt>uint8</tt>]]
 
*** <tt>uint16</tt>
 
*** <tt>uint16</tt>
 
*** <tt>uint32</tt>
 
*** <tt>uint32</tt>

Revision as of 19:29, 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