-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Let it go. #83
Comments
It should be used where it matters. In loops to avoid unnecessary
Note that it will change. ES6 is something new in the web browsers and still things will get optimised, better and better. It's just a matter of time. Also note that it is DOM, that usually slows down the applications, not JS. Besides, as I said in the previous response, it's up to the developer to decide whether to write things shorter of a little bit faster.
We must code using everything which is supported at the moment and update "old" code when the new ES6 features get implemented. Otherwise we'll never keep up with developing technology. |
Short but worth reading: https://medium.com/javascript-scene/javascript-es6-var-let-or-const-ba58b8dcde75 |
I'll create tickets in ckeditor5 and ckeditor5-core to convert the codebase to In general, I would propose prohibiting using |
It's more or less what I meant in #83 (comment). |
I do not like the idea of mixing
So 👍 |
Okay. Should we rewrite everything that is on master and development branches? |
I will handle ckeditor5, ckeditor5-core and plugins. Then I'll ask you to update your branches. But not earlier, so we can have necessary discussions based on my changes. In other words – after my changes land on master branches, nothing "old" can be merged, so PRs and existing will need to be fixed before merging them. |
Anyway, I found some interesting comment about |
Love the issue title :D |
What do you think about replacing
var
withlet
? See https://hacks.mozilla.org/2015/07/es6-in-depth-let-and-const/ for details about differences.We used to use
var
and used to quirks. But in 5 years our code withvar
may contains unneeded quirks which we will not be able to remove easily.On the other hand
var
have better performance andlet
is not supported everywhere, but we could use Babel.The text was updated successfully, but these errors were encountered: