Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Syntax over pragma? #6

Open
ljharb opened this issue Aug 1, 2017 · 0 comments
Open

Syntax over pragma? #6

ljharb opened this issue Aug 1, 2017 · 0 comments

Comments

@ljharb
Copy link
Member

ljharb commented Aug 1, 2017

An alternative I brought up during the meeting is:

use script; // would obviously throw in any current context, Script or Module

use module; // could be specced to be a no-op in a Module goal only

This would have the advantage that code with use module would definitely throw in every engine, unless it both had Module and use module noop support - whereas a "use module" pragma would not throw in anything that existed prior to pragma support.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant