Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coexist with Decorators #149

Open
iccir opened this issue Sep 19, 2018 · 2 comments
Open

Coexist with Decorators #149

iccir opened this issue Sep 19, 2018 · 2 comments

Comments

@iccir
Copy link
Member

iccir commented Sep 19, 2018

Similar to "use strict", we should have a directive that enables the use of the NilScript feature superset (and would be a superset of Strict Mode).

Certain ECMAScript features could be disabled in "NilScript Mode", for example: decorators. This allows NilScript to coexist with ECMAScript when they define syntax that we already use.

@iccir
Copy link
Member Author

iccir commented Sep 19, 2018

This would transpile to "use strict" for scripts and be removed for modules.

@iccir
Copy link
Member Author

iccir commented Sep 20, 2018

This is probably premature at this point:

  1. Decorators need to get to Stage 3 (and then 4).
  2. Esprima needs to add decorator support.

@iccir iccir changed the title 3.0: "use nilscript" directive Coexist with Decorators Sep 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant