Type
bulit-in type
- byte -> i32 in system(but if we can use i8 or others for performance, it can be)
- bool , true or false -> type: bool
- nil , nil has a only value, nil -> type: nil
- str -> [ byte ] -> list<byte>, the value of byte is mapping to Unicode
- num -> machine's float64(I will manage it automatic at future)
- list -> [ T ] -> type: list<T>(The implementation of it is not have standard, but their all have to behavior in the same way)
- map -> [ K: V ] -> type: map<K, V>
- object -> ( [ T ] ) -> type: object<list<T>>, nightmare
- fn -> fn<object<...params type>>, nightmare
- type -> type: type
User define
type Human (
+name: str
id: num
)