ES2015+?
See original GitHub issueIt’s 2019, and ES2015+ features supports is getting better among modern browsers.
Several patches from #2 already using some (mostly let
/const
).
So it would be great if we decide which of the features are ‘safe’ to use in whole project. But to select particular features we need to consider target platforms of IITC, as some of them could be limited.
Perhaps most universal approach would be to:
- Include some transpilling tool in our build chain.
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (10 by maintainers)
Top Results From Across the Web
Learn ES2015 - Babel.js
ES2015 classes are syntactic sugar over the prototype-based OO pattern. Having a single convenient declarative form makes class patterns easier to use, and ......
Read more >ES2015 | Web - Google Developers
ES2015 (formally ES6) is a fantastic step forward for the JavaScript language. It brings new features and sugaring for patterns that ...
Read more >ECMAScript 2015 Language Specification – ECMA-262 6th ...
Ecma International. Rue du Rhone 114. CH-1204 Geneva. Tel: +41 22 849 6000. Fax: +41 22 849 6001. Web: http://www.ecma-international.org. COPYRIGHT NOTICE.
Read more >ECMAScript - Wikipedia
ECMAScript is a JavaScript standard intended to ensure the interoperability of web pages ... Since ES 2015, transpiling JavaScript has become very common....
Read more >ES6 Tutorial
ECMAScript 2015 or ES2015 is a significant update to the JavaScript programming language. It is the first major update to the language since...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Babel requires a node.js, which I would like to avoid.
I found a project that implements the Javascript interpreter on Python. As stated, he is not production ready, but it works.
And if there were no problems with connecting DukPy, I would prefer to choose TypeScript, not Babel. Because he too implements the capabilities of the new ES, but it also supports types.
One more question: JS
Promise
vsjQuery.Deferred()
.Promise
is not part of ES5, that’s why we begin to usejQuery.Deferred
(https://github.com/iitc-project/ingress-intel-total-conversion/pull/1163).But refactoring of
game_status.js
/map_data_request.js
/redeeming.js
/request_handling.js
/search.js
/send_request.js
/… will demand more extensive promises using, so we should decide whether to stick to jQuery’s implementation, or switch to native JS’s.