Path to ES6, ES7?

corbettbrasing1
Mega Guru

Is there current roadmap to upgrade the platform to ES6, or 7?   I know Helsinki upgraded it to ES5.

56 REPLIES 56

I submit that we already have this - only better because it does language translation. 

 

As a best practice, you shouldn't be creating hard coded strings and displaying them to users (on the screen, email, etc.) instead use gs.getMessage() to translate the string for you. Using this, you can also pass parameters that get substituted in to the string.

 

Blog: gs.getMessage() - the second parameter

gs.getMessage is great, but string templates it is not only thing added in es6. how about arrow functions or defaut parameter values in functions? scoped variables ('let'), for-of loop on arrays and spread operator ('...') ? new class definition (by 'class'keyword), generators (those with 'yield')!

it would be great to use in server scripts all new js features.

 

Chuck:

London?  Madrid?  jshint?  It would be nice if we got just some of the feature set!

 

/*jshint esversion: 6 */  <-- Please?! At the very least.

 

BTW, try this out: /*jshing esnext: true */  

It has been deprecated in the current ecma world, but still works in ServiceNow (server-side code)

 

Also to alleviate some of the pain:

https://community.servicenow.com/community?id=community_blog&sys_id=fd5d6629dbd0dbc01dcaf3231f961989

http://es6-features.org/#Constants

 

Steven.

slacknow
Tera Contributor

Hi Chuck,

Any feedback from platform team ?

Best regards,

hkphillips42
Tera Contributor

Any update on this? ES6 really does provide a great amount of convenience and generally allows for better code