[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: future of annotations in Lua?
- From: "Pierre Chapuis" <catwell@...>
- Date: Fri, 07 Jun 2019 18:12:35 +0200
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