@kit-js/core

2.3.2 • Public • Published

Kit core

A super set of sibilant which introduces es6 features and interfaces. The core to a full tool kit of meta language magic, with js.

Getting started

npm install --save kit;

to use in a sibilant script:

(include "kit/header")
(import-namespace kit)

ES6 features added

Arrow functions!

(=> (a) a)

is equivalent to

a => a

Classes

They're in here some where.

New object litteral syntax

(var x (lit (def add1 (a) (+ a 1))))
var x = {
    add1(a) {
        return a + 1;
    } 
}
(var x (lit (a 10) (b 5) (gett c (Math.sqrt (+ (Math.sqr this.a) (Math.sqr this.b ))) )))
var x = {
   a : 10,
   b : 5,
   get c () {
       return Math.sqrt (Math.sqr( this.a) + Math.sqr (this.b));
   }
   
}

and a lot more.

Readme

Keywords

none

Package Sidebar

Install

npm i @kit-js/core

Weekly Downloads

1

Version

2.3.2

License

ISC

Unpacked Size

564 kB

Total Files

103

Last publish

Collaborators

  • risuki