functionalscript 0.0.249 → 0.0.254
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 +5 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# FunctionalScript
|
|
2
2
|
|
|
3
|
-
FunctionalScript is a pure functional programming language and a strict subset of
|
|
3
|
+
FunctionalScript is a pure functional programming language and a strict subset of
|
|
4
|
+
[ECMAScript](https://en.wikipedia.org/wiki/ECMAScript)/[JavaScript](https://en.wikipedia.org/wiki/JavaScript). It's inspired by
|
|
4
5
|
|
|
5
6
|
- [JSON](https://en.wikipedia.org/wiki/JSON), as a subset of JavaScript; FunctionalScript is a superset of JSON.
|
|
6
7
|
- [asm.JS](https://en.wikipedia.org/wiki/Asm.js)/[WebAssembly](https://en.wikipedia.org/wiki/WebAssembly), as a subset of JavaScript;
|
|
@@ -13,13 +14,14 @@ Create a new FunctionalScript repository on GitHub [here](https://github.com/fun
|
|
|
13
14
|
One of the main challenges is how to make a pure functional language when ES6 TCO is not supported by Chrome and Firefox.
|
|
14
15
|
A workaround for this problem is to use `let` for renaming objects.
|
|
15
16
|
|
|
17
|
+
|
|
16
18
|
## Install FunctionalScript As A Library
|
|
17
19
|
|
|
18
20
|
```
|
|
19
21
|
npm install -S github:functionalscript/functionalscript
|
|
20
22
|
```
|
|
21
23
|
|
|
22
|
-
##
|
|
24
|
+
## JSON
|
|
23
25
|
|
|
24
26
|
```js
|
|
25
27
|
jsonFile = expression
|
|
@@ -34,7 +36,7 @@ propertyId = string
|
|
|
34
36
|
|
|
35
37
|
## Stage 0
|
|
36
38
|
|
|
37
|
-
|
|
39
|
+
This stage can be used as an intermediate-code for VMs.
|
|
38
40
|
|
|
39
41
|
```js
|
|
40
42
|
fjsFile = expression
|