TurboScript
TurboScript copied to clipboard
Super charged typed JavaScript dialect for parallel programming which compiles to WebAssembly
**What?** Refine import syntax for * Importing external TurboScript * Importing JavaScript functions Decouple declare native function from import. **Update** ## Import Cases * ### import from local tbs file...
**What?** User wants to have `instanceof` functions to check whether a variable is an instance of specific class **How?** ```typescript let a = new Array(1); console.log(a instanceof Array); //true console.log(a...
**What?** User wants to have `typeof` function to get underlying type of a variable. **How?** ```typescript let a = new Array(1); console.log(typeof a == Array); //false console.log(typeof a == Array);...
```ts class Vec4 { constructor(x: float32 = 0, y: float32 = 0, z: float32 = 0, w: float32 = 1) { ... } } ``` ~~and class Renderer { getContext():...
**What?** User wants to have array literal [] to construct arrays **How?** ```typescript let triangles = [ new Triangle(), new Triangle(), new Triangle() ]; ```
**What?** User wants to have typescript style class inheritance. **How?** ```typescript class A { constructor ( ) { } } class B extends A { constructor ( ) { super();...
**What?** User wants to have generic data type as parameters for functions **How?** Implement generic parameters for functions ```typescript function funcName(arg:T):T{ } ```
**What?** User wants to compile specific part of the code to specific target. **How?** ```typescript function () { "use wasm" .... } function () { "use js" .... } function...
Proposal this expressions: ```js delete typeof instanceof alingof sizeof ``` make as operators (has NODE_FLAG_OPERATOR) with ability or not overloading in turboscript