On Sat, Mar 7, 2020 at 1:09 AM Diego Nehab wrote:
On Fri, Mar 6, 2020 at 18:19 Egor Skriptunoff wrote:
IMO, that would make the whole proposal almost useless.
Do you think that accessing a multi-index table should only be done indirectly through a function that returns the multiple required indices? Or do you believe that this is would be the typical usage?
I don’t.
I believe using returned tuple as a multi-key would be a typical usage of multi-index.
Does it mean that
- t[i,j] will always invoke a metamethod,
It does solve exactly the problem it sets out to solve.
And what exactly was the problem?
Actually, your proposal is to introduce multi-index as just a syntactic sugar for invoking a function.
How x=t[i,j] would be better than x=t:index(i,j) ?