Data type
Last updated
Was this helpful?
Last updated
Was this helpful?
Midio supports a variety of data types that allow you to work with different kinds of information. These data types include:
Number: Represents both integers and floating-point values.
String: Represents a sequence of characters.
Boolean: Represents a true or false value.
Null: Represents a lack of value
Array: Represents an ordered collection of elements, which can be of any data type.
Object: Represents a collection of key-value pairs, where keys are strings and values can be of any data type.
Buffer: An efficient representation of binary data as a sequence of bytes.
Opaque: A type used to hide a native value, used by certain native functions to manage native data types.
Although it is still rudimentary, Midio does have a (gradual) static type system. It is not yet possible to declare your own types in the editor, but you can assign types to your functions inputs and outputs.
We plan on expanding the capabilities of our type system in the future, allowing for more advanced types as well as the ability to define your own.