3 ms·
The two have already met. In Python you have optional typing [1] . Or in JavaScript you could use Flow [2] for static type checking. Also you could interface Ja
by zitterbewegung 9y ago
The two have already met. In Python you have optional typing [1] . Or in JavaScript you could use Flow [2] for static type checking. Also you could interface JavaScript with Typescript [3]
[1] https://docs.python.org/3/library/typing.html https://docs.python.org/3/library/typing.html
[2]https://flow.org https://flow.org
[3] https://en.m.wikipedia.org/wiki/TypeScript#Compatibility_with_JavaScript https://en.m.wikipedia.org/wiki/TypeScript#Compatibility_wit...
- wozer 9y agoPython itself does not have optional typing, only optional type hints. You need additional tools for the type checking, and these tools are in experimental stage.