dbf54519787e821d4934e7791f35893983d4dc0f
Misc/Moelang.md
| ... | ... | @@ -0,0 +1,23 @@ |
| 1 | +# Types |
|
| 2 | +## Primitives |
|
| 3 | +- Int (Int8, Int16, Int32, **Int64**, IntU8, IntU16, IntU32, IntU64) |
|
| 4 | +- Float (Float32, **Float64**) |
|
| 5 | +- Char (Char8, **Char16**) |
|
| 6 | +- Bool |
|
| 7 | +- Void |
|
| 8 | + |
|
| 9 | +## Dynamic structures |
|
| 10 | +- List[T] |
|
| 11 | + - Dynamic list of elements of type T |
|
| 12 | +- Map[K, V] |
|
| 13 | + - Dynamic map of keys of type K, and values of type V |
|
| 14 | + - Using V=Void makes it essentially a set |
|
| 15 | + |
|
| 16 | +## Other features |
|
| 17 | +- `@` |
|
| 18 | + - Reference instead of copy |
|
| 19 | +- `?` |
|
| 20 | + - Optional (can be `null`) |
|
| 21 | +- Type1(paramX:TypeX*) |
|
| 22 | + - Callable with params |
|
| 23 | + - Example Int(x: Int, y: Int) - a function with parameters x: Int, and y: Int, which returns Int |
|
| ... | ... | \ No newline at end of file |