[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [feature request] how about modify the `table.unpack` function to make `table.unpack(table.pack(f()) === f()` equivalent
- From: Rain Gloom <raingloom42@...>
- Date: Tue, 10 Jan 2017 06:11:49 +0000
I just want to say that it is a bad idea to rely on .n as metadata in this case. table.sort is supposed to work on the "array part" only, which means the user should be able to use non-numeric indices for whatever they like.