issues
search
framgia
/
fepas-cbs
[FEPAS] Conference room Booking Service
3
stars
11
forks
source link
Should we use TypeScript or ES6?
#41
Open
yeuem1vannam
opened
8 years ago
yeuem1vannam
commented
8 years ago
Nên chọn dùng TypeScript hay ES6 nhỉ?
xuanduc987
commented
8 years ago
TypeScript:
Pros:
Recommended to be used with Angular 2
Type safe, if we want
Mostly ES6 compliance, is a superset of ES6
Cons:
Is not Javascript
Need type declartions for thirdparty library (but usually we doesn't have to create it ourself)
Integration with vim is not great
ES6:
Pros:
Is the future of Javascript, so we could drop the transpiler when mordern browers support all of ES6 features
Tooling integration is better
Cons:
When change to Angular2, using ES6 would be not optimal.
Nên chọn dùng TypeScript hay ES6 nhỉ?