Issue created: https://github.com/JuliaLang/julia/issues/15844.
On Tue, Apr 12, 2016 at 11:28 AM, Stefan Karpinski <[email protected]> wrote: > This should definitely be added. > > On Tue, Apr 12, 2016 at 9:02 AM, Yichao Yu <[email protected]> wrote: > >> On Tue, Apr 12, 2016 at 5:22 AM, Didier Verna <[email protected]> >> wrote: >> > >> > Hello, >> > >> > I would have expected that this would work (but this is a syntax error): >> > let >> > global function f(x) 2x end >> > end >> >> FWIW, this can be written as >> global f >> function f .... >> >> AFAIK nothing is preventing adding it to the parser. >> >> > >> > This is ok however: >> > let >> > global f = x -> 2x >> > end >> > >> > Why isn't the first form allowed? >> > >> > >> > Thanks. >> > >> > -- >> > ELS'16 registration open! http://www.european-lisp-symposium.org >> > >> > Lisp, Jazz, Aïkido: http://www.didierverna.info >> > >
