For example is this (or a variant) a possibility for javascript
syntax:
var myFunction = *{return 'Hello World';};

Can some character like "*" be expanded to "function ()" when the
javascript source is being interpreted?

This shortcut would make code a lot prettier!

For extra credit I would also like to see the parentheses optional.


Here is an example:
# this is functional:
var greet = function(x){ return 'Hello ' + x };
greet('Joshaven')

# can this be made functional
var greet = *(x){ return 'Hello ' + x };
greet('Joshaven')

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to