functionalscript 0.0.309 → 0.0.310
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/README.md +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# FunctionalScript
|
|
2
2
|
|
|
3
|
-
FunctionalScript is a
|
|
3
|
+
FunctionalScript is a purely functional programming language and a strict subset of
|
|
4
4
|
[ECMAScript](https://en.wikipedia.org/wiki/ECMAScript)/[JavaScript](https://en.wikipedia.org/wiki/JavaScript). It's inspired by
|
|
5
5
|
|
|
6
6
|
- [JSON](https://en.wikipedia.org/wiki/JSON) as a subset of JavaScript. JSON is also a subset of FunctionalScript.
|
|
@@ -16,14 +16,14 @@ Create a new FunctionalScript repository on GitHub [here](https://github.com/fun
|
|
|
16
16
|
In FunctionalScript:
|
|
17
17
|
|
|
18
18
|
- Any module is a valid JavaScript module. No additional build steps are required.
|
|
19
|
-
- Code should not have [side-effects](https://en.wikipedia.org/wiki/Side_effect_(computer_science)). Any JavaScript statement, expression, or function which has a side effect is not allowed in FunctionalScript. There are no exceptions to this rule, such as `unsafe` code which can be found in Rust, C#, and other languages.
|
|
20
|
-
- A module can't depend on non FunctionalScript module.
|
|
21
|
-
- It also has no standard library
|
|
19
|
+
- Code should not have [side-effects](https://en.wikipedia.org/wiki/Side_effect_(computer_science)). Any JavaScript statement, expression, or function which has a side effect is not allowed in FunctionalScript. There are no exceptions to this rule, such as `unsafe` code, which can be found in Rust, C#, and other languages.
|
|
20
|
+
- A module can't depend on a non FunctionalScript module.
|
|
21
|
+
- It also has no standard library. Only a safe subset of standard JavaScript API can be used without referencing other modules.
|
|
22
22
|
|
|
23
23
|
## Applications
|
|
24
24
|
|
|
25
|
-
FunctionalScript code can be used
|
|
25
|
+
FunctionalScript code can be used
|
|
26
26
|
|
|
27
27
|
- in any JavaScript/TypeScript application,
|
|
28
28
|
- as a JSON with expressions,
|
|
29
|
-
- as a query language.
|
|
29
|
+
- as a query language.
|