JuliaLang/julia — Issue #338: function(x,y,z) syntax for long closures
Author: StefanKarpinski
Created: 2012-01-13 14:37:45+00:00
State: open
Labels: features, speculative

When writing a multiline anonymous function, the `->` syntax is somewhat awkward:

```
f = (x,y,z) -> begin
# do something complicated with x, y and z
end
```

It might be nice to allow function to just be followed by an argument list:

```
f = function(x,y,z)
# do something complicated with x, y and z
end
```

Not sure if this clashes with being able to put the function name in parentheses in function declarations, however.