hprose-html5 icon indicating copy to clipboard operation
hprose-html5 copied to clipboard

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

Open jeffreylau7 opened this issue 8 years ago • 1 comments

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

jeffreylau7 avatar Apr 13 '17 08:04 jeffreylau7

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

andot avatar Apr 13 '17 12:04 andot