This works on 0.5, where anonymous functions are almost like normal functions now.
On Tue, 2016-05-31 at 09:26, Femto Trader <[email protected]> wrote: > Hello, > > I'm trying to define an anonymous function > > > julia> (args...) -> begin > println("hello anonymous func with args") > end > (anonymous function) > > works correctly > > A "classic" with keywords arguments can be define using > > julia> function f(args...; kwargs...) > println("hello classic func with args and kwargs") > end > f (generic function with 1 method) > > But it doesn't work with keyword arguments > > > julia> (args...; kwargs...) -> begin > println("hello anonymous func with args and kwargs") > end > ERROR: syntax: "begin > args... > kwargs... > end" is not a valid function argument name > > > I don't understand if that's an issue or a misunderstanding from my side. > > Any idea ? > > > Kind regards
