Re: [PROPOSAL] multiple keys/values with function metamethod
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: [PROPOSAL] multiple keys/values with function metamethod
- From: Dirk Laurie <dirk.laurie@...>
- Date: 2015年9月12日 20:11:38 +0200
2015年09月12日 18:58 GMT+02:00 Rodrigo Azevedo <rodrigoams@gmail.com>:
> t1[a,b,c] = 1,2,3
> equals
> t1[a],t1[b],t1[c] = 1,2,3
> For this case. This is NOT syntactic sugar (see below).
If you can write exactly equivalent Lua code, it is syntactic sugar.
It is not a swearword, several things in Lua are syntactic sugar,