Package Exports
- functionalscript
- functionalscript/module.f.cjs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (functionalscript) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
FunctionalScript
FunctionalScript is a purely functional programming language and a strict subset of ECMAScript/JavaScript. It's inspired by
- JSON and JSON5 as subsets of JavaScript. JSON is also a subset of FunctionalScript.
- asm.JS/WebAssembly, as a subset of JavaScript.
- TypeScript, as a superset of JavaScript.
A brief description of FunctionalScript Programming Language.
Create a new FunctionalScript repository on GitHub here.
Learn more about FunctionalScript.
Design Principles
In FunctionalScript:
- Any module is a valid JavaScript module. No additional build steps are required.
- Code should not have side-effects. 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. - A module can't depend on a non FunctionalScript module.
- It also has no standard library. Only a safe subset of standard JavaScript API can be used without referencing other modules.
Applications
FunctionalScript code can be used
- in any JavaScript/TypeScript application,
- as a JSON with expressions,
- as a query language.