functionalscript 0.0.311 → 0.0.312
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LANGUAGE.md +2 -2
- package/package.json +1 -1
package/LANGUAGE.md
CHANGED
|
@@ -139,7 +139,7 @@ Expressions could fall under these categories:
|
|
|
139
139
|
- Relations Operators: `in`, `instanceof`.
|
|
140
140
|
- Member Operators: `.`, `[]`.
|
|
141
141
|
|
|
142
|
-
Note
|
|
142
|
+
**Note:** the `.` member operator has prohibited property names, such as `constructor` and `push`. To access such properties, it's recommended to use the [Object.getOwnPropertyDescriptor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/getOwnPropertyDescriptor) function.
|
|
143
143
|
|
|
144
144
|
## 8. Arrow Functions
|
|
145
145
|
|
|
@@ -197,7 +197,7 @@ const f = () => x // < invalid
|
|
|
197
197
|
|
|
198
198
|
### 9.5. Throw
|
|
199
199
|
|
|
200
|
-
[Throw](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/throw). FunctionalScript allows to throw exceptions, but the language has no
|
|
200
|
+
[Throw](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/throw). FunctionalScript allows to throw exceptions, but the language has no syntax to catch them. Developers should only use the 'throw' statement in non-recoverable situations. Throwing an exception could be compared to [panic in Rust](https://doc.rust-lang.org/std/macro.panic.html).
|
|
201
201
|
|
|
202
202
|
### 9.6. While
|
|
203
203
|
|