On Fri, Oct 21, 2016 at 3:20 PM, Gert Cuykens <gert.cuyk...@gmail.com> wrote:
> First I would like to see if we can agree on the term superset. Like
> the question is typescript a superset of ES? As you pointed out there
> are many comment like solutions like jsdoc or like your pep 484
> suggestion. But then a superset get narrowed down to // and /**/ which
> is fine but that means typescript doesn't come close as a super set
> and can never be used in jsbin directly for example.

Supersets have more stuff than the base.  Anything that's a superset
syntax-wise will never be usable in places that expect base grammar;
the extra stuff will be a syntax error.

> So the big question is can we agree on a superset that stretches the
> boundaries so that typescript would fall under that category. If for
> example certain typescript syntax is too brought I can ask the
> typescript community if they can adjust their compiler in the future
> that is compatible with the Ecma superset specifications.

Can you actually explain what you're asking for, with specifics?  So
far all i can divine is that you want JS to allow some
TypeScript-specific syntax (and treat it as comments?), but I don't
know *what* syntax you're asking for.  All you've done so far is
provide TypeScript snippets for us to look at.

~TJ
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to