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

Reply via email to