Skip to content
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

请问为什么不用es6来写代码呢? #5

Open
jeffreylau7 opened this issue Apr 13, 2017 · 1 comment
Open

请问为什么不用es6来写代码呢? #5

jeffreylau7 opened this issue Apr 13, 2017 · 1 comment

Comments

@jeffreylau7
Copy link

请问为什么不用es6来写代码呢?考虑到什么因素呢?

@andot
Copy link
Member

andot commented Apr 13, 2017

这个代码是 3-4 年前从 hprose-js 版本分支出来的,那个年代还没有 ES6,我没办法用还不存在的东西写代码。还有就是为了在不需要特殊打包转换工具的情况下就可以兼容所有的浏览器和 Hybird app,所以继续使用兼容 ES5 的写法(甚至兼容 ES3)。另外,反正代码本身可以在 ES6 下面使用,所以也没必要用 ES6 重写。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants