4 ms·
Would be so cool if the js engines ignored types like python3. Then I could just write Typescript and run it on node/browser
by nojvek 10y ago
Would be so cool if the js engines ignored types like python3.
Then I could just write Typescript and run it on node/browser
- tomatsu 10y agoThat would work except for enums. That's the one simple thing the engine actually has to do.
- nojvek 10y agoJS should just really support enums. Its such a great feature of a core language. I wonder if there is any ES proposal for enums.
- josteink 10y agoGot a link to more info on that python thing? Sounds interesting.
- WorldMaker 10y agoThe PEP on it: https://www.python.org/dev/peps/pep-3107/ https://www.python.org/dev/peps/pep-3107/ Basically, Python 3 added syntax for annotations, but most of the syntax is make sure it parses like code expressions would, then ignore whatever those code expressions are.