2 ms·
TC39 still has scars from ES4 which tried to add optional typing (and is the only "lost" ES standard that browsers never implemented). My hope is that since th
by WorldMaker 8y ago
TC39 still has scars from ES4 which tried to add optional typing (and is the only "lost" ES standard that browsers never implemented).
My hope is that since then we have examples like Python's PEP 3107 [0] that help make sense as where a TC39 proposal could move forward: encourage browsers to AST parse type annotations, and ignore them by default; leaving the actual semantics still to tools like Flow and Typescript until there is a better convergence in semantics and/or browsers have greater needs of specific type annotations.
[0] https://www.python.org/dev/peps/pep-3107/ https://www.python.org/dev/peps/pep-3107/