Type restrictions Restrictions from instance variables self restriction Classes as restrictions Type restrictions in splats Free variables Splat type restrictions Type res...
Type conversions Type conversions Syntactically a type conversion is like a procedure call, but a type name replaces the procedure name. A type conversion is always safe in the...
Procedural type Procedural type A procedural type is internally a pointer to a procedure. nil is an allowed value for a variable of a procedural type. Examples: proc printIte...
cstring type cstring type The cstring type meaning compatible string is the native representation of a string for the compilation backend. For the C backend the cstring type re...
String type String type All string literals are of the type string. A string in Nim is very similar to a sequence of characters. However, strings in Nim are both zero-terminate...
Type relations Type equality Subtype relation Convertible relation Assignment compatibility Type relations The following section defines several relations on types that are...
Type inference With type restrictions Without type restrictions 1. Assigning a literal value 2. Assigning the result of invoking the class method new 3. Assigning a variable th...
Type restrictions Restrictions from instance variables self restriction Classes as restrictions Type restrictions in splats Free variables Splat type restrictions Type res...
Doris supports complex types such as Array, Map, Struct, and JSON. Doris provides various functions specifically designed for these complex types. For detailed information on th...
String type KV example Code description Run log String type KV example This example mainly demonstrates the related functions of the string KV. As a special KV type, the Key a...