lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Fri, Jun 7, 2019, at 16:11, Roberto Ierusalimschy wrote:

> For locals it is not a big difference, but the following looks weird to
> my eyes, no matter the details:
> 
>      @my_custom_annotation(with, arguments)
>      function my_global_function()
>         -- ...
>      end

It does not to me because it is the syntax used by TypeScript decorators,
which they also had to tack onto the pre-existing JavaScript syntax:
https://www.typescriptlang.org/docs/handbook/decorators.html

-- 
Pierre Chapuis