> Le 11 oct. 2015 à 17:45, Mohsen Azimi <[email protected]> a écrit :
> 
> 
> But for omitting argument declaration we need to find an alternative to $0, 
> $1... since those are valid variable names in JS. Maybe we can use #0, #1... 
> instead. 
> 
> This is very useful for functional programming aspect of JS. For example in a 
> filter function:
> 
> ```
> let passed = objs.filter(#0.passed)
> ```

Your syntax is ambiguous: Should your code be interpreted as:

    let passed = objs.filter($0 => $0.passed)

or:

    let passed = $0 => objs.filter($0.passed)

You need some syntax in order to delimitate the function.

—Claude
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to