|
1 | 1 | 
|
2 | 2 |
|
3 |
| -# 1 MinitScript 2.0: new language features draft |
| 3 | +# 1. MinitScript 2.0: new language features draft |
4 | 4 |
|
5 |
| -- inline comments with #- $x = 1 -# |
| 5 | +## 1.1. Inline comments with #- $x = 1 -# |
6 | 6 |
|
7 | 7 | ```
|
8 | 8 | function: bubbleSortA(&$array)
|
|
19 | 19 | end
|
20 | 20 | ```
|
21 | 21 |
|
22 |
| -- enums |
| 22 | +## 1.2. Enums |
23 | 23 |
|
24 | 24 | ```
|
25 | 25 | enum Colors
|
|
51 | 51 | end
|
52 | 52 | ```
|
53 | 53 |
|
54 |
| -- structures, which are data only |
| 54 | +## 1.3. Structures, which are data only |
55 | 55 |
|
56 | 56 | ```
|
57 | 57 | # maybe, not sure if required 100%
|
|
61 | 61 | end
|
62 | 62 | ```
|
63 | 63 |
|
64 |
| -- structure data validations, which are type hinted interfaces alike |
| 64 | +## 1.4. Structure data validations, which are type hinted interfaces alike |
65 | 65 |
|
66 | 66 | ```
|
67 | 67 | # maybe, but looks good already
|
|
71 | 71 | end
|
72 | 72 | ```
|
73 | 73 |
|
74 |
| -- interfaces for class methods |
| 74 | +## 1.5. Interfaces for class methods |
75 | 75 |
|
76 | 76 | ```
|
77 | 77 | interface CarInterface
|
|
90 | 90 | end
|
91 | 91 | ```
|
92 | 92 |
|
93 |
| -- classes with optional interface and data validation |
| 93 | +## 1.6. Classes with optional interface and data validation |
94 | 94 |
|
95 | 95 | ```
|
96 | 96 | class Car[ implements CarInterface [validated-by CarData]
|
|
135 | 135 | $car = Car(4, Colors.$RED) + Car(4, Colors.$BLUE)
|
136 | 136 | ```
|
137 | 137 |
|
138 |
| -- Static member variables |
| 138 | +## 1.7. Static member variables |
139 | 139 | - maybe by mapping to global variables
|
140 | 140 | - Class::$classProperty would map to $$.___Class_classProperty
|
141 | 141 |
|
|
145 | 145 | end
|
146 | 146 | ```
|
147 | 147 |
|
148 |
| -- Static member methods |
| 148 | +## 1.8. Static member methods |
149 | 149 |
|
150 | 150 | ```
|
151 | 151 | class Class
|
|
154 | 154 | end
|
155 | 155 | end
|
156 | 156 | ```
|
| 157 | + |
| 158 | +# 2. Links |
| 159 | + |
| 160 | +- MinitScript, see [README.md](./README.md) |
| 161 | +- MinitScript - How to build, see [README-BuildingHowTo.md](./README-BuildingHowTo.md) |
| 162 | +- MinitScript - How to use, see [README-Tools.md](./README-Tools.md) |
| 163 | +- The Mindty Kollektiv [Discord Server](https://discord.gg/Na4ACaFD) |
0 commit comments