Overview

Numbers

Generally, the compiler chooses data type, so generic types are enough for type checking.

For generic types, we follow Python style, but not the same:

Generic Type Name

Integer | integer | int

Float | float

Decimal | decimal

But if you really want to do something with data types, here you go.

For specific types, we follow Kotlin style, but not the same:

Type Name
Type Names

Integer

Int8, Int16, Int32, Int64, Int128

Unsigned Integer

UInt8, UInt16, UInt32, UInt64, UInt128

Float

Float32

Double

Double, Float64

String

String is a collection, which was treated the same as array and list.

Type Name

String | string | str

Type Inference

Consistent type means aggregatable type.

Last updated