On Aug 4, 2014 6:28 AM, "Sim" <Sim@iamsim.ru>
wrote:
>>
>> Hi,
>>
>> I know there are a zillion ways to do this, but it
sounds to me that
>> they will either need an additional compilation step or
a customized
>> interpreter, or extra keystrokes
>>
>> What I am asking for is a simple '@' symbol for
annotation that would
>> be safely discarded; (-- would work, but I would just
hope for an even
>> simpler symbol)
>>
>> Would this ever be taken?
>>
>> Thanks
>
> Hi!
> I completely agree about usefulness annotations.
> Today it may be created like this using Metalua (http://lua-users.org/wiki/MetaLua)
extension:
>
> local someTable = {
> -{ persistent() }
> id = 15,
> -{ persistent() }
> name = 'user',
> }
>
> You mean, that should be clear syntax like:
>
> local someTable = {
> @persistent
> id = 15,
> @persistent
> name="user",
> }
What should happen at compile-time in PUC-Rio Lua?
I wish it would do the same as python (@whatever <insert some
objects> -> whatever(<insert some objects>),
@whatever(...) <objects> -> whatever(...)(<objects>))