KobraScript 3.0
Add some nice new ES6 features to KobraScript. Target language becomes ES6 JS, users will be responsible for ES5 transpilation.
Kobra Extension Proposals
-
$ becomes const
-
let becomes let
-
var no longer becomes part of transpilations.
-
fn continues to be function.
-
anon continues to be (function(){...}());.
- Lambda proposal @ comment 3
- Consider implementing template literals.
$ fullName = ${firstName} ${lastName}``
-
Default parameter values.
- Rest parameter @ comment 4
- Property shorthand @ comment 5
- Method properties @ comment 6
- New Ways to Assign @ comment 7
- ...
I think the first couple are not bad at all to implement, and frequently used in ES6 JS. We would notably be leaving classes out as KS aint about that. Lambdas and constants will help though!
KobraScript 3.0
Add some nice new ES6 features to KobraScript. Target language becomes ES6 JS, users will be responsible for ES5 transpilation.
Kobra Extension Proposals
$becomesconstletbecomesletvarno longer becomes part of transpilations.fncontinues to befunction.anoncontinues to be(function(){...}());.$ fullName =${firstName} ${lastName}``I think the first couple are not bad at all to implement, and frequently used in ES6 JS. We would notably be leaving classes out as KS aint about that. Lambdas and constants will help though!