[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [Proposal] rawpairs()
- From: Tim Hill <drtimhill@...>
- Date: Tue, 26 Jan 2016 11:52:56 -0800
> On Jan 26, 2016, at 7:50 AM, Soni L. <firstname.lastname@example.org> wrote:
> pairs() is considered harmful, and can cause bugs: https://github.com/MightyPirates/OpenComputers/issues/1625
> Now, `for k, v in next, t do` is a bit less clear than `for k, v in pairs(t) do`, so my proposal is that we get a built-in rawpairs(), as `for k, v in rawpairs(t) do` is clear, and it'd be good for new users to not be confused when they see it but it fails on their interpreter with "attempt to call nil”.
Just rename the article “OpenComputers project considered buggy” and everything is ok.