Types

Explicit and Implicit Typing in Cyclone.


Types

Cyclone supports both Implicit and Explicit typing.

Implicit Typing

In Implicit typing, the type of the variable is inferred by the compiler during the declaration.

var a = 10

Here the type of a is inferred as int.

Explicit Typing

In Explicit typing, the type of the variable is declared by the user.

var a : int = 10

Here the type of a is explicitly declared as int.

Supported Types

Cyclone supports the following types:

  • int - Support up to 64-bit integers. (IEE 754) (-2^63 to 2^63-1) / (-9223372036854775808 to 9223372036854775807)
  • float - Support up to 64-bit floating-point numbers. (IEEE 754) (1.7E-308 to 1.7E+308) / (4.94065645841246544e-324 to 1.79769313486231570e+308)
  • string - Sequence of characters enclosed in double quotes.
  • bool - Boolean type with values true and false.

Yea, that isn't much, but more types are coming soon! 🚀


    Theme

    Presets

    Background

    Custom:

    Primary

    Custom:

    Secondary

    Custom:

    Border

    Custom:

    Mode

    Light
    Dark