lua-users home
lua-l archive

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


On Thu, 25 Apr 2019 at 15:42, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
> To make myself clearer, you wrote:
>
>   I think there is an opportunity to allow a general way of introducing
>   annotations in Lua, which can be exploited by extensions. It would be
>   sad if that opportunity is lost.
>
> What I don't see is how '!' (versus '*') or postfixed (versus prefixed)
> are more appropriate for this "general way of introducing annotations in
> Lua".

I think prefixed or postfixed is probably not important.

>
> I also don't see why, in the presence of other options, 'toclose' would
> be the default. Is it more common/important than a possible '*const' or
> '*immutable'? More common than any attribute that is yet to be created?
> (Note that we added 'toclose' to the syntax exactly to allow future
> extensions.)
>

I think using a default meaning was suggested by Dirk, I agree that
that may not be a good idea.

>>From personal taste I would prefer 'autoclose' to 'toclose', but if a
generic annotation feature was adopted then I think it woudn't matter
what you decided to use.

Regards
Dibyendu