[ 
https://issues.apache.org/jira/browse/TINKERPOP-1489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15655320#comment-15655320
 ] 

ASF GitHub Bot commented on TINKERPOP-1489:
-------------------------------------------

Github user jbmusso commented on the issue:

    https://github.com/apache/tinkerpop/pull/450
  
    Ah, it looks like [nashorn supports let and const keywords on 
8u40](http://fr.slideshare.net/akihironishikawa/nashorn-in-the-future-en) so we 
could swap `var` for `let` and `const` unless we want to target earlier 
versions of Java8. I don't think adding a transpiler such as Babeljs to the mix 
is worth the trouble here since it's going to be a nightmare to maintain the 
build pipeline. However, it *could* make sense for more recent versions of 
Node. Node 7 would be happier with ES2015 code rather than ES5 ;) - see 
http://node.green/. I don't think it's realistic so I'm just putting it here 
for further reference, basically when Java9 is out (where [nashorn could fully 
support 
ES2015/6](http://fr.slideshare.net/akihironishikawa/nashorn-in-the-future-en)).
    
    Note that there is [a proposal for adding async iterator to 
JavaScript](https://github.com/tc39/proposal-async-iteration). It's currently 
in stage 3 so this could make it to the EcmaScript specification. Using 
`.next()` for async iteration might become a reality.


> Provide a Javascript Gremlin Language Variant
> ---------------------------------------------
>
>                 Key: TINKERPOP-1489
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1489
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: language-variant
>            Reporter: Jorge Bay
>
> It would be nice to have a Javascript Gremlin Language Variant that could 
> work with any ES5 runtime, specially the ones that support 
> [CommonJs|http://requirejs.org/docs/commonjs.html], like Node.js.
> Nashorn, the engine shipped with JDK 8+, does not implement CommonJs but 
> provides [additional 
> extensions|https://wiki.openjdk.java.net/display/Nashorn/Nashorn+extensions] 
> making modular JavaScript possible. Nashorn should be supported in order to 
> run glv tests under the same infrastructure (JDK8).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to