On Thu, May 1, 2014 at 10:47 AM, Jamie Nelson <[email protected]>wrote:

> Just a quick note to people complaining about java being an ugly,
> overly-verbose language...
> Gwt now supports java 8 (pre-release zip @
> https://github.com/WeTheInternet/gwt-sandbox/releases ),
> which means that it is actually MORE concise than javascript (lambdas and
> method handles).
>
> getElement().onclick = function() { /*do stuff*/}
> getElement().onclick(()->{/*do stuff*/})
>

ES6 adds arrow functions so it looks pretty much the same in JavaScript.
You can use that syntax now by using Traceur to transpile ES6 code to ES5
so it can run in current browsers. See
http://ociweb.com/sett/settApr2014.html. I think it's safe to say that Java
will never be more concise than JavaScript.

-- 
R. Mark Volkmann
Object Computing, Inc.

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to