Skip to content

KS 3.0: ES6-related KEP's #69

Description

@AuthorOfTheSurf

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

  1. $ becomes const
  2. let becomes let
  3. var no longer becomes part of transpilations.
  4. fn continues to be function.
  5. anon continues to be (function(){...}());.
  6. Lambda proposal @ comment 3
  7. Consider implementing template literals. $ fullName = ${firstName} ${lastName}``
  8. Default parameter values.
  9. Rest parameter @ comment 4
  10. Property shorthand @ comment 5
  11. Method properties @ comment 6
  12. New Ways to Assign @ comment 7
  13. ...

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions